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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Georgios Dagkakis
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
Expand all
Hide 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 @@
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Cacheable__manager_id
</string>
</key>
<value>
<string>
http_cache
</string>
</value>
</item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts
54096599.77
</string>
</value>
<value>
<string>
ts
93420566.82
</string>
</value>
</item>
<item>
<key>
<string>
__name__
</string>
</key>
...
...
@@ -226,7 +230,7 @@
\t\t_continueToNextStep : function(){\n
\t\t\tif(this.isLastStep){\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\tif(!this.options.formPluginEnabled){\n
\t\t\t\t\treturn
true;\n
...
...
@@ -286,8 +290,8 @@
\n
\t\t_animate
:
function(oldStep,
newStep,
stepShownCallback){\n
\t\t\tthis._disableNavigation();\n
\t\t\tvar
old =
this.steps.filter("
#"
+
oldStep
);\n
\t\t\tvar
current =
this.steps.filter("
#"
+
newStep
);\n
\t\t\tvar
old =
this.steps.filter("
[id=\'"+oldStep+"\']"
);\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\tcurrent.find(":input").not(".wizard-ignore").removeAttr("disabled");\n
\t\t\tvar
wizard =
this;\n
...
...
@@ -305,14 +309,14 @@
\n
\t\t_checkIflastStep
:
function(step){\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}\n
\t\t},\n
\n
\t\t_getLink
:
function(step){\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
\t\t\tif(links
!=
undefined){\n
\t\t\t\tif(links.filter(":radio,:checkbox").size()
>
0){\n
...
...
@@ -327,12 +331,12 @@
\t\t_navigate : function(step){\n
\t\t\tvar link = this._getLink(step);\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}\n
\t\t\t\treturn this.currentStep;\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}\n
\t\t},\n
...
...
@@ -371,7 +375,7 @@
\t\t\tthis.element.resetForm()\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\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\
tthis.activatedSteps =
new
Array();\n
\t\t\
tthis.previousStep =
undefined;\n
...
...
@@ -451,7 +455,7 @@
\t\tupdate_steps
:
function(){\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.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._enableNavigation();\n
\t\t\tif(!this.options.disableUIStyles){\n
...
...
@@ -496,7 +500,7 @@
</item>
<item>
<key>
<string>
size
</string>
</key>
<value>
<int>
143
27
</int>
</value>
<value>
<int>
143
90
</int>
</value>
</item>
<item>
<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
This diff is collapsed.
Click to expand it.
bt5/erp5_jquery_plugin_formwizard/bt/revision
View file @
e6cd717e
4
\ No newline at end of file
5
\ 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