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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
erp5
Commits
abd69b54
Commit
abd69b54
authored
Jan 12, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix syntax (based on jslint)
parent
e76d964e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
84 additions
and
75 deletions
+84
-75
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
...hTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
+5
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
...emplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
+6
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.xml
...lateItem/web_page_module/rjs_gadget_erp5_listfield_js.xml
+12
-13
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
...TemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
+17
-17
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_actionpage_js.xml
...Item/web_page_module/rjs_gadget_erp5_pt_actionpage_js.xml
+5
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
...tem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
+24
-14
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_loginform_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_loginform_js.xml
+4
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
+4
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
...teItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
+7
-7
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
View file @
abd69b54
...
...
@@ -235,8 +235,8 @@
}\n
\n
return field_queue\n
.push(function () {\n
return form_gadget.translateHtml(field_element.innerHTML);\n
.push(function () {\n
return form_gadget.translateHtml(field_element.innerHTML);\n
})\n
.push(function (my_translate_html) {\n
field_element.innerHTML = my_translate_html;\n
...
...
@@ -486,7 +486,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
940.1
0454.31463.21265
</string>
</value>
<value>
<string>
940.1
1553.26313.55261
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -504,8 +504,8 @@
</tuple>
<state>
<tuple>
<float>
142
0736435.02
</float>
<string>
UTC
</string>
<float>
142
1080954.49
</float>
<string>
GMT
</string>
</tuple>
</state>
</object>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_header_js.xml
View file @
abd69b54
...
...
@@ -102,8 +102,8 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*global window, rJS, Handlebars, document, loopEventListener */\n
(function (window, rJS, Handlebars, document, loopEventListener) {\n
/*global window, rJS, Handlebars, document, loopEventListener
, RSVP
*/\n
(function (window, rJS, Handlebars, document, loopEventListener
, RSVP
) {\n
"use strict";\n
\n
/////////////////////////////////////////////////////////////////\n
...
...
@@ -444,7 +444,7 @@
);\n
});\n
\n
}(window,
rJS,
Handlebars,
document,
loopEventListener));
}(window,
rJS,
Handlebars,
document,
loopEventListener
,
RSVP
));
]]
></string>
</value>
</item>
...
...
@@ -567,7 +567,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
super_sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -581,7 +581,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
940.
2108.16108.5614
</string>
</value>
<value>
<string>
940.
10099.40468.62378
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -599,7 +599,7 @@
</tuple>
<state>
<tuple>
<float>
142
0237508.03
</float>
<float>
142
1080897.75
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.xml
View file @
abd69b54
...
...
@@ -101,9 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS, Handlebars */\n
/*global window, rJS, Handlebars
, document, RSVP
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, Handlebars) {\n
(function (window, rJS, Handlebars
, document, RSVP
) {\n
"use strict";\n
\n
/////////////////////////////////////////////////////////////////\n
...
...
@@ -127,12 +127,12 @@
g.element = element;\n
});\n
})\n
\n
\n
//////////////////////////////////////////////\n
// acquired method\n
//////////////////////////////////////////////\n
.declareAcquiredMethod("translateHtml", "translateHtml")\n
\n
\n
.declareMethod(\'render\', function (options) {\n
var i,\n
template,\n
...
...
@@ -165,20 +165,19 @@
.push(function (my_translated_html) {\n
// XXX: no fan...\n
var option_list,\n
i,\n
i_len,\n
fragment = document.createDocumentFragment(),\n
div = document.createElement("div");\n
\n
\n
div.innerHTML = my_translated_html;\n
option_list = div.querySelectorAll("option");\n
for (i = 0, i_len = option_list.length; i
< i_len
;
i
+=
1)
{\n
fragment.appendChild(option_list[i]);\n
}\n
\n
\n
select.appendChild(fragment);\n
//
XXX:
no
fan
end\n
\n
\n
if
(
field_json.required =
==
1)
{\n
select.setAttribute(\'required\',
\'required\');\n
}\n
...
...
@@ -186,7 +185,7 @@
select.setAttribute(\'readonly\',
\'readonly\');\n
select.setAttribute(\'data-wrapper-class\',
\'ui-state-readonly\');\n
//
select.setAttribute(\'disabled\',
\'disabled\');\n
\n
\n
}\n
});\n
})\n
...
...
@@ -198,7 +197,7 @@
return
result;\n
});\n
\n
}(window,
rJS,
Handlebars));
}(window,
rJS,
Handlebars
,
document,
RSVP
));
]]
></string>
</value>
</item>
...
...
@@ -321,7 +320,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
super_sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -335,7 +334,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
39.61577.21369.11400
</string>
</value>
<value>
<string>
9
40.16203.52595.49561
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -353,7 +352,7 @@
</tuple>
<state>
<tuple>
<float>
14
19871313.56
</float>
<float>
14
21081098.25
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_panel_js.xml
View file @
abd69b54
...
...
@@ -102,8 +102,8 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*global window, rJS, Handlebars, jQuery */\n
(function (window, rJS, Handlebars, $) {\n
/*global window, rJS, Handlebars, jQuery
, RSVP, loopEventListener
*/\n
(function (window, rJS, Handlebars, $
, RSVP, loopEventListener
) {\n
"use strict";\n
\n
/////////////////////////////////////////////////////////////////\n
...
...
@@ -132,7 +132,7 @@
.ready(function (g) {\n
g.props = {};\n
})\n
\n
\n
//////////////////////////////////////////////\n
// acquired method\n
//////////////////////////////////////////////\n
...
...
@@ -175,7 +175,7 @@
language_list,\n
document_list = [],\n
raw_language_list = all_result[2];\n
\n
\n
// XXX: Customize panel header!\n
tmp = panel_template();\n
\n
...
...
@@ -193,7 +193,7 @@
});\n
return g.translateHtml(tmp);\n
}\n
\n
\n
// no translations available or not loaded when reaching this point\n
tmp += panel_template_nolang({\n
module_href: all_result[0],\n
...
...
@@ -213,8 +213,8 @@
.declareMethod(\'toggle\', function () {\n
this.props.jelement.panel("toggle");\n
})\n
\n
.declareMethod(\'render\', function (
option_dict
) {\n
\n
.declareMethod(\'render\', function () {\n
var panel_gadget = this;\n
\n
if (panel_gadget.props.set_search === true) {\n
...
...
@@ -222,11 +222,11 @@
}\n
\n
return new RSVP.Queue()\n
.push(function() {\n
.push(function
() {\n
return panel_gadget.declareGadget("gadget_erp5_searchfield.html", {"scope": "search"});\n
})\n
.push(function (my_search_gadget) {\n
var
selector,
parent_node, search_option_dict = {};\n
var parent_node, search_option_dict = {};\n
\n
panel_gadget.props.set_search = true;\n
\n
...
...
@@ -243,14 +243,14 @@
return panel_gadget;\n
});\n
})\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// declared services\n
/////////////////////////////////////////////////////////////////\n
.declareService(function () {\n
var panel_gadget,
\n
form_list,
\n
event_list,
\n
var panel_gadget,\n
form_list,\n
event_list,\n
handler,\n
i,\n
len;\n
...
...
@@ -284,7 +284,7 @@
});\n
});\n
\n
}(window, rJS, Handlebars, jQuery));
}(window, rJS, Handlebars, jQuery
, RSVP, loopEventListener
));
]]>
</string>
</value>
</item>
...
...
@@ -407,7 +407,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
super_sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -421,7 +421,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
940.16
35.5936.59528
</string>
</value>
<value>
<string>
940.16
198.52720.49783
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -439,7 +439,7 @@
</tuple>
<state>
<tuple>
<float>
142
0206973.03
</float>
<float>
142
1080772.85
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_actionpage_js.xml
View file @
abd69b54
...
...
@@ -184,12 +184,12 @@
i18n: view_list[i - 2].title\n
});\n
}\n
\n
\n
return gadget.translateHtml(table_template({\n
definition_title: "Workflow Transitions",\n
documentlist: tab_list,\n
definition_i18n: "Workflow-Transitions"\n
}));
\n
}));\n
})\n
.push(function (my_translated_html) {\n
gadget.props.element.innerHTML = my_translated_html;\n
...
...
@@ -325,7 +325,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
super_sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -339,7 +339,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
940.
2136.15566.12765
</string>
</value>
<value>
<string>
940.
11553.26313.55261
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -357,7 +357,7 @@
</tuple>
<state>
<tuple>
<float>
142
0237984.64
</float>
<float>
142
1080866.35
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
View file @
abd69b54
...
...
@@ -179,11 +179,21 @@
\n
// XXX hardcoded...\n
switch (title) {\n
case "Create User": icon = " ui-icon-user"; break;\n
case "Create Document": icon = " ui-icon-file-o"; break;\n
case "Change State": icon = " ui-icon-share-alt"; break;\n
case "Submit": icon = " ui-icon-check"; break;\n
default: icon = " ui-icon-random"; break;\n
case "Create User":\n
icon = " ui-icon-user";\n
break;\n
case "Create Document":\n
icon = " ui-icon-file-o";\n
break;\n
case "Change State":\n
icon = " ui-icon-share-alt";\n
break;\n
case "Submit":\n
icon = " ui-icon-check";\n
break;\n
default:\n
icon = " ui-icon-random";\n
break;\n
}\n
span.className = "ui-icon ui-icon-custom" + icon;\n
span.textContent = "\\u00A0";\n
...
...
@@ -208,14 +218,14 @@
form_gadget.whoWantToDisplayThisPage({page: "breadcrumb"})\n
]);\n
})\n
.push(function (all_result) {\n
return form_gadget.renderPageHeader({\n
cancel_url: all_result[1],\n
page_title: options.erp5_document.title,\n
breadcrumb_url: all_result[2],\n
submit_action: true\n
.push(function (all_result) {\n
return form_gadget.renderPageHeader({\n
cancel_url: all_result[1],\n
page_title: options.erp5_document.title,\n
breadcrumb_url: all_result[2],\n
submit_action: true\n
});\n
});\n
});\n
});\n
})\n
\n
...
...
@@ -417,7 +427,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
940.16
022.61765.35328
</string>
</value>
<value>
<string>
940.16
195.40887.33757
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -435,7 +445,7 @@
</tuple>
<state>
<tuple>
<float>
14210
70245.4
</float>
<float>
14210
80553.89
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_loginform_js.xml
View file @
abd69b54
...
...
@@ -132,7 +132,7 @@
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function () {\n
var gadget = this;\n
\n
\n
// XXX: Lot of DOM touches\n
return new RSVP.Queue()\n
.push(function () {\n
...
...
@@ -286,7 +286,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
super_sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -300,7 +300,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
39.54011.36657.61064
</string>
</value>
<value>
<string>
9
40.11553.26313.55261
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -318,7 +318,7 @@
</tuple>
<state>
<tuple>
<float>
14
19435753.4
4
</float>
<float>
14
21080830.8
4
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_tabpage_js.xml
View file @
abd69b54
...
...
@@ -205,7 +205,7 @@
})\n
.push(function (my_translated_html) {\n
gadget.props.element.innerHTML = my_translated_html;\n
\n
\n
return gadget.renderPageHeader({\n
cancel_url: tab_list[matching].link\n
});\n
...
...
@@ -335,7 +335,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
super_sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -349,7 +349,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
39.62551.57559.50790
</string>
</value>
<value>
<string>
9
40.11553.26313.55261
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -367,7 +367,7 @@
</tuple>
<state>
<tuple>
<float>
14
1992983
4.4
</float>
<float>
14
2108080
4.4
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
View file @
abd69b54
...
...
@@ -99,9 +99,9 @@
</item>
<item>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global window, rJS, RSVP, loopEventListener */\n
<value>
<string>
/*global window, rJS, RSVP, loopEventListener
, Handlebars
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, RSVP, loopEventListener) {\n
(function (window, rJS, RSVP, loopEventListener
, Handlebars
) {\n
"use strict";\n
\n
/////////////////////////////////////////////////////////////////\n
...
...
@@ -163,7 +163,7 @@
}));\n
})\n
.push(function (my_translated_html) {\n
search_gadget.props.element.querySelector("form").innerHTML =
\n
search_gadget.props.element.querySelector("form").innerHTML =\n
my_translated_html;\n
return search_gadget;\n
});\n
...
...
@@ -203,7 +203,7 @@
);\n
});\n
\n
}(window, rJS, RSVP, loopEventListener));
</string>
</value>
}(window, rJS, RSVP, loopEventListener
, Handlebars
));
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
@@ -324,7 +324,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
super_sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -338,7 +338,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
940.1
897.14544.10120
</string>
</value>
<value>
<string>
940.1
1553.26313.55261
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -356,7 +356,7 @@
</tuple>
<state>
<tuple>
<float>
142
0236368.3
1
</float>
<float>
142
1080302.
1
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
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