Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
e6cd717e
Commit
e6cd717e
authored
Feb 26, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support step elements conaining whitespaces in their IDs.
parent
96f338d3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
22 deletions
+29
-22
bt5/erp5_jquery_plugin_formwizard/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/formwizard/formwizard.js.xml
...ns/erp5_jquery/jquery/plugin/formwizard/formwizard.js.xml
+15
-11
bt5/erp5_jquery_plugin_formwizard/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/formwizard/formwizard.min.js.xml
...rp5_jquery/jquery/plugin/formwizard/formwizard.min.js.xml
+13
-10
bt5/erp5_jquery_plugin_formwizard/bt/revision
bt5/erp5_jquery_plugin_formwizard/bt/revision
+1
-1
No files found.
bt5/erp5_jquery_plugin_formwizard/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/formwizard/formwizard.js.xml
View file @
e6cd717e
...
@@ -6,9 +6,13 @@
...
@@ -6,9 +6,13 @@
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts
54096599.77
</string>
</value>
<value>
<string>
ts
93420566.82
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -226,7 +230,7 @@
...
@@ -226,7 +230,7 @@
\t\t_continueToNextStep : function(){\n
\t\t_continueToNextStep : function(){\n
\t\t\tif(this.isLastStep){\n
\t\t\tif(this.isLastStep){\n
\t\t\t\tfor(var i = 0; i
< this.activatedSteps.length
;
i++){\n
\t\t\t\tfor(var i = 0; i
< this.activatedSteps.length
;
i++){\n
\t\t\t\t\tthis.steps.filter("
#"
+
this.activatedSteps[i]
).find(":input").not(".wizard-ignore").removeAttr("disabled");\n
\t\t\t\t\tthis.steps.filter("
[
id=
\'"+this.activatedSteps[i]+"\']"
).find(":input").not(".wizard-ignore").removeAttr("disabled");\n
\t\t\t\t}\n
\t\t\t\t}\n
\t\t\t\tif(!this.options.formPluginEnabled){\n
\t\t\t\tif(!this.options.formPluginEnabled){\n
\t\t\t\t\treturn
true;\n
\t\t\t\t\treturn
true;\n
...
@@ -286,8 +290,8 @@
...
@@ -286,8 +290,8 @@
\n
\n
\t\t_animate
:
function(oldStep,
newStep,
stepShownCallback){\n
\t\t_animate
:
function(oldStep,
newStep,
stepShownCallback){\n
\t\t\tthis._disableNavigation();\n
\t\t\tthis._disableNavigation();\n
\t\t\tvar
old =
this.steps.filter("
#"
+
oldStep
);\n
\t\t\tvar
old =
this.steps.filter("
[id=\'"+oldStep+"\']"
);\n
\t\t\tvar
current =
this.steps.filter("
#"
+
newStep
);\n
\t\t\tvar
current =
this.steps.filter("
[id=\'"+newStep+"\']"
);\n
\t\t\told.find(":input").not(".wizard-ignore").attr("disabled","disabled");\n
\t\t\told.find(":input").not(".wizard-ignore").attr("disabled","disabled");\n
\t\t\tcurrent.find(":input").not(".wizard-ignore").removeAttr("disabled");\n
\t\t\tcurrent.find(":input").not(".wizard-ignore").removeAttr("disabled");\n
\t\t\tvar
wizard =
this;\n
\t\t\tvar
wizard =
this;\n
...
@@ -305,14 +309,14 @@
...
@@ -305,14 +309,14 @@
\n
\n
\t\t_checkIflastStep
:
function(step){\n
\t\t_checkIflastStep
:
function(step){\n
\t\t\
tthis.isLastStep =
false;\n
\t\t\
tthis.isLastStep =
false;\n
\t\t\tif($("
#"
+
step
).hasClass(this.options.submitStepClass)
||
this.steps.filter(":last").attr("id")
==
step){\n
\t\t\tif($("
[
id=
\'"+step+"\']"
).hasClass(this.options.submitStepClass)
||
this.steps.filter(":last").attr("id")
==
step){\n
\t\t\t\
tthis.isLastStep =
true;\n
\t\t\t\
tthis.isLastStep =
true;\n
\t\t\t}\n
\t\t\t}\n
\t\t},\n
\t\t},\n
\n
\n
\t\t_getLink
:
function(step){\n
\t\t_getLink
:
function(step){\n
\t\t\tvar
link =
undefined;\n
\t\t\tvar
link =
undefined;\n
\t\t\tvar
links =
this.steps.filter("
#"
+
step
).find(this.options.linkClass);\n
\t\t\tvar
links =
this.steps.filter("
[id=\'"+step+"\']"
).find(this.options.linkClass);\n
\n
\n
\t\t\tif(links
!=
undefined){\n
\t\t\tif(links
!=
undefined){\n
\t\t\t\tif(links.filter(":radio,:checkbox").size()
>
0){\n
\t\t\t\tif(links.filter(":radio,:checkbox").size()
>
0){\n
...
@@ -327,12 +331,12 @@
...
@@ -327,12 +331,12 @@
\t\t_navigate : function(step){\n
\t\t_navigate : function(step){\n
\t\t\tvar link = this._getLink(step);\n
\t\t\tvar link = this._getLink(step);\n
\t\t\tif(link != undefined){\n
\t\t\tif(link != undefined){\n
\t\t\t\tif((link != ""
&&
link != null
&&
link != undefined)
&&
this.steps.filter("
#" + link
).attr("id") != undefined){\n
\t\t\t\tif((link != ""
&&
link != null
&&
link != undefined)
&&
this.steps.filter("
[id=\'"+link+"\']"
).attr("id") != undefined){\n
\t\t\t\t\treturn link;\n
\t\t\t\t\treturn link;\n
\t\t\t\t}\n
\t\t\t\t}\n
\t\t\t\treturn this.currentStep;\n
\t\t\t\treturn this.currentStep;\n
\t\t\t}else if(link == undefined
&&
!this.isLastStep){\n
\t\t\t}else if(link == undefined
&&
!this.isLastStep){\n
\t\t\t\tvar step1 = this.steps.filter("
#" + step
).next().attr("id");\n
\t\t\t\tvar step1 = this.steps.filter("
[id=\'"+step+"\']"
).next().attr("id");\n
\t\t\t\treturn step1;\n
\t\t\t\treturn step1;\n
\t\t\t}\n
\t\t\t}\n
\t\t},\n
\t\t},\n
...
@@ -371,7 +375,7 @@
...
@@ -371,7 +375,7 @@
\t\t\tthis.element.resetForm()\n
\t\t\tthis.element.resetForm()\n
\t\t\t$("label,:input,textarea",this).removeClass("error");\n
\t\t\t$("label,:input,textarea",this).removeClass("error");\n
\t\t\tfor(var i = 0; i
< this.activatedSteps.length
;
i++){\n
\t\t\tfor(var i = 0; i
< this.activatedSteps.length
;
i++){\n
\t\t\t\tthis.steps.filter("
#"
+
this.activatedSteps[i]
).hide().find(":input").attr("disabled","disabled");\n
\t\t\t\tthis.steps.filter("
[
id=
\'"+this.activatedSteps[i]+"\']"
).hide().find(":input").attr("disabled","disabled");\n
\t\t\t}\n
\t\t\t}\n
\t\t\
tthis.activatedSteps =
new
Array();\n
\t\t\
tthis.activatedSteps =
new
Array();\n
\t\t\
tthis.previousStep =
undefined;\n
\t\t\
tthis.previousStep =
undefined;\n
...
@@ -451,7 +455,7 @@
...
@@ -451,7 +455,7 @@
\t\tupdate_steps
:
function(){\n
\t\tupdate_steps
:
function(){\n
\t\t\
tthis.steps =
this.element.find(".step").addClass("ui-formwizard-content");\n
\t\t\
tthis.steps =
this.element.find(".step").addClass("ui-formwizard-content");\n
\t\t\
tthis.firstStep =
this.steps.eq(0).attr("id");\n
\t\t\
tthis.firstStep =
this.steps.eq(0).attr("id");\n
\t\t\tthis.steps.not("
#"
+
this.currentStep
).hide().find(":input").addClass("ui-wizard-content").attr("disabled","disabled");\n
\t\t\tthis.steps.not("
[
id=
\'"+this.currentStep+"\']"
).hide().find(":input").addClass("ui-wizard-content").attr("disabled","disabled");\n
\t\t\tthis._checkIflastStep(this.currentStep);\n
\t\t\tthis._checkIflastStep(this.currentStep);\n
\t\t\tthis._enableNavigation();\n
\t\t\tthis._enableNavigation();\n
\t\t\tif(!this.options.disableUIStyles){\n
\t\t\tif(!this.options.disableUIStyles){\n
...
@@ -496,7 +500,7 @@
...
@@ -496,7 +500,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
143
27
</int>
</value>
<value>
<int>
143
90
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_jquery_plugin_formwizard/PathTemplateItem/portal_skins/erp5_jquery/jquery/plugin/formwizard/formwizard.min.js.xml
View file @
e6cd717e
...
@@ -6,9 +6,13 @@
...
@@ -6,9 +6,13 @@
</pickle>
</pickle>
<pickle>
<pickle>
<dictionary>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts
55496452.0
4
</string>
</value>
<value>
<string>
ts
93420527.1
4
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -22,7 +26,6 @@
...
@@ -22,7 +26,6 @@
<key>
<string>
data
</string>
</key>
<key>
<string>
data
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
\n
(function($){$.widget("ui.formwizard",{_init:function(){var wizard=this;var formOptionsSuccess=this.options.formOptions.success;var formOptionsComplete=this.options.formOptions.complete;var formOptionsBeforeSend=this.options.formOptions.beforeSend;var formOptionsBeforeSubmit=this.options.formOptions.beforeSubmit;var formOptionsBeforeSerialize=this.options.formOptions.beforeSerialize;this.options.formOptions=$.extend(this.options.formOptions,{success:function(responseText,textStatus,xhr){if(formOptionsSuccess){formOptionsSuccess(responseText,textStatus,xhr);}\n
(function($){$.widget("ui.formwizard",{_init:function(){var wizard=this;var formOptionsSuccess=this.options.formOptions.success;var formOptionsComplete=this.options.formOptions.complete;var formOptionsBeforeSend=this.options.formOptions.beforeSend;var formOptionsBeforeSubmit=this.options.formOptions.beforeSubmit;var formOptionsBeforeSerialize=this.options.formOptions.beforeSerialize;this.options.formOptions=$.extend(this.options.formOptions,{success:function(responseText,textStatus,xhr){if(formOptionsSuccess){formOptionsSuccess(responseText,textStatus,xhr);}\n
if(wizard.options.formOptions&&wizard.options.formOptions.resetForm||!wizard.options.formOptions){wizard._reset();}},complete:function(xhr,textStatus){if(formOptionsComplete){formOptionsComplete(xhr,textStatus);}\n
if(wizard.options.formOptions&&wizard.options.formOptions.resetForm||!wizard.options.formOptions){wizard._reset();}},complete:function(xhr,textStatus){if(formOptionsComplete){formOptionsComplete(xhr,textStatus);}\n
wizard._enableNavigation();},beforeSubmit:function(arr,theForm,options){if(formOptionsBeforeSubmit){var shouldSubmit=formOptionsBeforeSubmit(arr,theForm,options);if(!shouldSubmit)\n
wizard._enableNavigation();},beforeSubmit:function(arr,theForm,options){if(formOptionsBeforeSubmit){var shouldSubmit=formOptionsBeforeSubmit(arr,theForm,options);if(!shouldSubmit)\n
...
@@ -42,23 +45,23 @@ beforeSend(xhr);$(wizard.element).trigger(\'before_remote_ajax\',{"currentStep":
...
@@ -42,23 +45,23 @@ beforeSend(xhr);$(wizard.element).trigger(\'before_remote_ajax\',{"currentStep":
complete(xhr,statusText);$(wizard.element).trigger(\'after_remote_ajax\',{"currentStep":wizard.currentStep});wizard._enableNavigation();}})\n
complete(xhr,statusText);$(wizard.element).trigger(\'after_remote_ajax\',{"currentStep":wizard.currentStep});wizard._enableNavigation();}})\n
this.element.ajaxSubmit(options);return false;}}\n
this.element.ajaxSubmit(options);return false;}}\n
return this._continueToNextStep();},_back:function(){if(this.activatedSteps.length>
0){if(this.options.historyEnabled){this._updateHistory(this.activatedSteps[this.activatedSteps.length-2]);}else{this._show(this.activatedSteps[this.activatedSteps.length-2],true);}}\n
return this._continueToNextStep();},_back:function(){if(this.activatedSteps.length>
0){if(this.options.historyEnabled){this._updateHistory(this.activatedSteps[this.activatedSteps.length-2]);}else{this._show(this.activatedSteps[this.activatedSteps.length-2],true);}}\n
return false;},_continueToNextStep:function(){if(this.isLastStep){for(var i=0;i
<this.activatedSteps.length
;i++){this.steps.filter("
#"+this.activatedSteps[i]
).find(":input").not(".wizard-ignore").removeAttr("disabled");}\n
return false;},_continueToNextStep:function(){if(this.isLastStep){for(var i=0;i
<this.activatedSteps.length
;i++){this.steps.filter("
[
id=
\'"+this.activatedSteps[i]+"\']"
).find(":input").not(".wizard-ignore").removeAttr("disabled");}\n
if(!this.options.formPluginEnabled){return
true;}else{this._disableNavigation();this.element.ajaxSubmit(this.options.formOptions);return
false;}}\n
if(!this.options.formPluginEnabled){return
true;}else{this._disableNavigation();this.element.ajaxSubmit(this.options.formOptions);return
false;}}\n
var
step=
this._navigate(this.currentStep);if(step==this.currentStep){return
false;}\n
var
step=
this._navigate(this.currentStep);if(step==this.currentStep){return
false;}\n
if(this.options.historyEnabled){this._updateHistory(step);}else{this._show(step,true);}\n
if(this.options.historyEnabled){this._updateHistory(step);}else{this._show(step,true);}\n
return
false;},_updateHistory:function(step){var
state=
{};state["_"+$(this.element).attr(\'id\')]=step;$.bbq.pushState(state);},_disableNavigation:function(){this.nextButton.attr("disabled","disabled");this.backButton.attr("disabled","disabled");if(!this.options.disableUIStyles){this.nextButton.removeClass("ui-state-active").addClass("ui-state-disabled");this.backButton.removeClass("ui-state-active").addClass("ui-state-disabled");}},_enableNavigation:function(){if(this.isLastStep){this.nextButton.val(this.options.textSubmit);}else{this.nextButton.val(this.options.textNext);}\n
return
false;},_updateHistory:function(step){var
state=
{};state["_"+$(this.element).attr(\'id\')]=step;$.bbq.pushState(state);},_disableNavigation:function(){this.nextButton.attr("disabled","disabled");this.backButton.attr("disabled","disabled");if(!this.options.disableUIStyles){this.nextButton.removeClass("ui-state-active").addClass("ui-state-disabled");this.backButton.removeClass("ui-state-active").addClass("ui-state-disabled");}},_enableNavigation:function(){if(this.isLastStep){this.nextButton.val(this.options.textSubmit);}else{this.nextButton.val(this.options.textNext);}\n
if($.trim(this.currentStep)!==this.steps.eq(0).attr("id")){this.backButton.removeAttr("disabled");if(!this.options.disableUIStyles){this.backButton.removeClass("ui-state-disabled").addClass("ui-state-active");}}\n
if($.trim(this.currentStep)!==this.steps.eq(0).attr("id")){this.backButton.removeAttr("disabled");if(!this.options.disableUIStyles){this.backButton.removeClass("ui-state-disabled").addClass("ui-state-active");}}\n
this.nextButton.removeAttr("disabled");if(!this.options.disableUIStyles){this.nextButton.removeClass("ui-state-disabled").addClass("ui-state-active");}},_animate:function(oldStep,newStep,stepShownCallback){this._disableNavigation();var
old=
this.steps.filter("
#"+oldStep);var
current=
this.steps.filter("#"+newStep
);old.find(":input").not(".wizard-ignore").attr("disabled","disabled");current.find(":input").not(".wizard-ignore").removeAttr("disabled");var
wizard=
this;old.animate(wizard.options.outAnimation,wizard.options.outDuration,wizard.options.easing,function(){current.animate(wizard.options.inAnimation,wizard.options.inDuration,wizard.options.easing,function(){if(wizard.options.focusFirstInput)\n
this.nextButton.removeAttr("disabled");if(!this.options.disableUIStyles){this.nextButton.removeClass("ui-state-disabled").addClass("ui-state-active");}},_animate:function(oldStep,newStep,stepShownCallback){this._disableNavigation();var
old=
this.steps.filter("
[id=\'"+oldStep+"\']");var
current=
this.steps.filter("[id=\'"+newStep+"\']"
);old.find(":input").not(".wizard-ignore").attr("disabled","disabled");current.find(":input").not(".wizard-ignore").removeAttr("disabled");var
wizard=
this;old.animate(wizard.options.outAnimation,wizard.options.outDuration,wizard.options.easing,function(){current.animate(wizard.options.inAnimation,wizard.options.inDuration,wizard.options.easing,function(){if(wizard.options.focusFirstInput)\n
current.find(":input:first").focus();wizard._enableNavigation();stepShownCallback.apply(wizard);});return;});},_checkIflastStep:function(step){
this.isLastStep=
false;if($("
#"+step).hasClass(this.options.submitStepClass)||this.steps.filter(":last").attr("id")==step){this.isLastStep=true;}},_getLink:function(step){var
link=
undefined;var
links=
this.steps.filter("#"+step
).find(this.options.linkClass);if(links!=undefined){if(links.filter(":radio,:checkbox").size()
>
0){link=links.filter(this.options.linkClass+":checked").val();}else{link=$(links).val();}}\n
current.find(":input:first").focus();wizard._enableNavigation();stepShownCallback.apply(wizard);});return;});},_checkIflastStep:function(step){
this.isLastStep=
false;if($("
[id=\'"+step+"\']").hasClass(this.options.submitStepClass)||this.steps.filter(":last").attr("id")==step){this.isLastStep=true;}},_getLink:function(step){var
link=
undefined;var
links=
this.steps.filter("[id=\'"+step+"\']"
).find(this.options.linkClass);if(links!=undefined){if(links.filter(":radio,:checkbox").size()
>
0){link=links.filter(this.options.linkClass+":checked").val();}else{link=$(links).val();}}\n
return link;},_navigate:function(step){var link=this._getLink(step);if(link!=undefined){if((link!=""
&&
link!=null
&&
link!=undefined)
&&
this.steps.filter("
#"+link
).attr("id")!=undefined){return link;}\n
return link;},_navigate:function(step){var link=this._getLink(step);if(link!=undefined){if((link!=""
&&
link!=null
&&
link!=undefined)
&&
this.steps.filter("
[id=\'"+link+"\']"
).attr("id")!=undefined){return link;}\n
return this.currentStep;}else if(link==undefined
&&
!this.isLastStep){var step1=this.steps.filter("
#"+step
).next().attr("id");return step1;}},_show:function(step){var backwards=false;var triggerStepShown=step!==undefined;if(step==undefined||step==""){this.activatedSteps.pop();step=this.firstStep;this.activatedSteps.push(step);}else{if($.inArray(step,this.activatedSteps)>-1){backwards=true;this.activatedSteps.pop();}else{this.activatedSteps.push(step);}}\n
return this.currentStep;}else if(link==undefined
&&
!this.isLastStep){var step1=this.steps.filter("
[id=\'"+step+"\']"
).next().attr("id");return step1;}},_show:function(step){var backwards=false;var triggerStepShown=step!==undefined;if(step==undefined||step==""){this.activatedSteps.pop();step=this.firstStep;this.activatedSteps.push(step);}else{if($.inArray(step,this.activatedSteps)>-1){backwards=true;this.activatedSteps.pop();}else{this.activatedSteps.push(step);}}\n
if(this.currentStep!==step||step===this.firstStep){this.previousStep=this.currentStep;this._checkIflastStep(step);this.currentStep=step;var stepShownCallback=function(){if(triggerStepShown){$(this.element).trigger(\'step_shown\',$.extend({"isBackNavigation":backwards},this._state()));}}\n
if(this.currentStep!==step||step===this.firstStep){this.previousStep=this.currentStep;this._checkIflastStep(step);this.currentStep=step;var stepShownCallback=function(){if(triggerStepShown){$(this.element).trigger(\'step_shown\',$.extend({"isBackNavigation":backwards},this._state()));}}\n
if(triggerStepShown){$(this.element).trigger(\'before_step_shown\',$.extend({"isBackNavigation":backwards},this._state()));}\n
if(triggerStepShown){$(this.element).trigger(\'before_step_shown\',$.extend({"isBackNavigation":backwards},this._state()));}\n
this._animate(this.previousStep,step,stepShownCallback);};},_reset:function(){this.element.resetForm()\n
this._animate(this.previousStep,step,stepShownCallback);};},_reset:function(){this.element.resetForm()\n
$("label,:input,textarea",this).removeClass("error");for(var i=0;i
<this.activatedSteps.length
;i++){this.steps.filter("
#"+this.activatedSteps[i]
).hide().find(":input").attr("disabled","disabled");}\n
$("label,:input,textarea",this).removeClass("error");for(var i=0;i
<this.activatedSteps.length
;i++){this.steps.filter("
[
id=
\'"+this.activatedSteps[i]+"\']"
).hide().find(":input").attr("disabled","disabled");}\n
this.activatedSteps=
new
Array();
this.previousStep=
undefined;this.isLastStep=false;if(this.options.historyEnabled){this._updateHistory(this.firstStep);}else{this._show(this.firstStep);}},_state:function(state){var
currentState=
{"settings":this.options,"activatedSteps":this.activatedSteps,"isLastStep":this.isLastStep,"isFirstStep":this.currentStep===this.firstStep,"previousStep":this.previousStep,"currentStep":this.currentStep,"backButton":this.backButton,"nextButton":this.nextButton,"steps":this.steps,"firstStep":this.firstStep}\n
this.activatedSteps=
new
Array();
this.previousStep=
undefined;this.isLastStep=false;if(this.options.historyEnabled){this._updateHistory(this.firstStep);}else{this._show(this.firstStep);}},_state:function(state){var
currentState=
{"settings":this.options,"activatedSteps":this.activatedSteps,"isLastStep":this.isLastStep,"isFirstStep":this.currentStep===this.firstStep,"previousStep":this.previousStep,"currentStep":this.currentStep,"backButton":this.backButton,"nextButton":this.nextButton,"steps":this.steps,"firstStep":this.firstStep}\n
if(state!==undefined)\n
if(state!==undefined)\n
return
currentState[state];return
currentState;},show:function(step){if(this.options.historyEnabled){this._updateHistory(step);}else{this._show(step);}},state:function(state){return
this._state(state);},reset:function(){this._reset();},next:function(){this._next();},back:function(){this._back();},destroy:function(){this.element.find("*").removeAttr("disabled").show();this.nextButton.unbind("click").val(this.nextButtonInitinalValue).removeClass("ui-state-disabled").addClass("ui-state-active");this.backButton.unbind("click").val(this.backButtonInitinalValue).removeClass("ui-state-disabled").addClass("ui-state-active");
this.backButtonInitinalValue=
undefined;this.nextButtonInitinalValue=undefined;this.activatedSteps=undefined;this.previousStep=undefined;this.currentStep=undefined;this.isLastStep=undefined;this.options=undefined;this.nextButton=undefined;this.backButton=undefined;this.formwizard=undefined;this.element=undefined;this.steps=undefined;this.firstStep=undefined;},update_steps:function(){this.steps=this.element.find(".step").addClass("ui-formwizard-content");this.firstStep=this.steps.eq(0).attr("id");this.steps.not("
#"+this.currentStep
).hide().find(":input").addClass("ui-wizard-content").attr("disabled","disabled");this._checkIflastStep(this.currentStep);this._enableNavigation();if(!this.options.disableUIStyles){this.steps.addClass("ui-helper-reset
ui-corner-all");this.steps.find(":input").addClass("ui-helper-reset
ui-state-default");}},options:{historyEnabled:false,validationEnabled:false,validationOptions:undefined,formPluginEnabled:false,linkClass:".link",submitStepClass:"submit_step",back:":reset",next:":submit",textSubmit:\'Submit\',textNext:\'Next\',textBack:\'Back\',remoteAjax:undefined,inAnimation:{opacity:\'show\'},outAnimation:{opacity:\'hide\'},inDuration:400,outDuration:400,easing:\'swing\',focusFirstInput:false,disableInputFields:true,formOptions:{reset:true,success:function(data){if((window[\'console\']!==undefined)){console.log("%s","form
submit
successful");}},disableUIStyles:false}}});})(jQuery);var
is=
{ie:navigator.appName==\'Microsoft
Internet
Explorer\',java:navigator.javaEnabled(),
ns:navigator.appName=
=\'Netscape\',ua:navigator.userAgent.toLowerCase(),version:parseFloat(navigator.appVersion.substr(21))||parseFloat(navigator.appVersion),win:navigator.platform==\'Win32\'}\n
return
currentState[state];return
currentState;},show:function(step){if(this.options.historyEnabled){this._updateHistory(step);}else{this._show(step);}},state:function(state){return
this._state(state);},reset:function(){this._reset();},next:function(){this._next();},back:function(){this._back();},destroy:function(){this.element.find("*").removeAttr("disabled").show();this.nextButton.unbind("click").val(this.nextButtonInitinalValue).removeClass("ui-state-disabled").addClass("ui-state-active");this.backButton.unbind("click").val(this.backButtonInitinalValue).removeClass("ui-state-disabled").addClass("ui-state-active");
this.backButtonInitinalValue=
undefined;this.nextButtonInitinalValue=undefined;this.activatedSteps=undefined;this.previousStep=undefined;this.currentStep=undefined;this.isLastStep=undefined;this.options=undefined;this.nextButton=undefined;this.backButton=undefined;this.formwizard=undefined;this.element=undefined;this.steps=undefined;this.firstStep=undefined;},update_steps:function(){this.steps=this.element.find(".step").addClass("ui-formwizard-content");this.firstStep=this.steps.eq(0).attr("id");this.steps.not("
[id=\'"+this.currentStep+"\']"
).hide().find(":input").addClass("ui-wizard-content").attr("disabled","disabled");this._checkIflastStep(this.currentStep);this._enableNavigation();if(!this.options.disableUIStyles){this.steps.addClass("ui-helper-reset
ui-corner-all");this.steps.find(":input").addClass("ui-helper-reset
ui-state-default");}},options:{historyEnabled:false,validationEnabled:false,validationOptions:undefined,formPluginEnabled:false,linkClass:".link",submitStepClass:"submit_step",back:":reset",next:":submit",textSubmit:\'Submit\',textNext:\'Next\',textBack:\'Back\',remoteAjax:undefined,inAnimation:{opacity:\'show\'},outAnimation:{opacity:\'hide\'},inDuration:400,outDuration:400,easing:\'swing\',focusFirstInput:false,disableInputFields:true,formOptions:{reset:true,success:function(data){if((window[\'console\']!==undefined)){console.log("%s","form
submit
successful");}},disableUIStyles:false}}});})(jQuery);var
is=
{ie:navigator.appName==\'Microsoft
Internet
Explorer\',java:navigator.javaEnabled(),
ns:navigator.appName=
=\'Netscape\',ua:navigator.userAgent.toLowerCase(),version:parseFloat(navigator.appVersion.substr(21))||parseFloat(navigator.appVersion),win:navigator.platform==\'Win32\'}\n
is.mac=
is.ua.indexOf(\'mac\')
>
=0;if(is.ua.indexOf(\'opera\')>=0){is.ie=is.ns=false;is.opera=true;}\n
is.mac=
is.ua.indexOf(\'mac\')
>
=0;if(is.ua.indexOf(\'opera\')>=0){is.ie=is.ns=false;is.opera=true;}\n
if(is.ua.indexOf(\'gecko\')>=0){is.ie=is.ns=false;is.gecko=true;}
if(is.ua.indexOf(\'gecko\')>=0){is.ie=is.ns=false;is.gecko=true;}
...
@@ -70,7 +73,7 @@ if(is.ua.indexOf(\'gecko\')>=0){is.ie=is.ns=false;is.gecko=true;}
...
@@ -70,7 +73,7 @@ if(is.ua.indexOf(\'gecko\')>=0){is.ie=is.ns=false;is.gecko=true;}
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
121
0
7
</int>
</value>
<value>
<int>
121
8
7
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_jquery_plugin_formwizard/bt/revision
View file @
e6cd717e
4
5
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment