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
Bryan Kaperick
erp5
Commits
a712c555
Commit
a712c555
authored
Sep 18, 2014
by
Romain Courteaud
Committed by
Sebastien Robin
Sep 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JSLint
parent
143b3b40
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
266 additions
and
277 deletions
+266
-277
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_bin_js.xml
...ui/PathTemplateItem/web_page_module/rjs_gadget_bin_js.xml
+7
-7
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_codemirror_js.xml
...TemplateItem/web_page_module/rjs_gadget_codemirror_js.xml
+8
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_breadcrumb_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_breadcrumb_js.xml
+8
-11
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
...ateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
+6
-5
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
+35
-40
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
...i/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
+27
-26
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
...mplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
+11
-9
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
+3
-3
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
+6
-9
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
+8
-10
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_form_view_js.xml
+29
-32
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_frontpage_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_frontpage_js.xml
+6
-6
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
+8
-8
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_readonlyfield_js.xml
...Item/web_page_module/rjs_gadget_erp5_readonlyfield_js.xml
+6
-5
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
+61
-63
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.xml
...teItem/web_page_module/rjs_gadget_erp5_stringfield_js.xml
+7
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_tab_list_js.xml
...plateItem/web_page_module/rjs_gadget_erp5_tab_list_js.xml
+11
-14
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_textareafield_js.xml
...Item/web_page_module/rjs_gadget_erp5_textareafield_js.xml
+7
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_global_js.xml
...PathTemplateItem/web_page_module/rjs_gadget_global_js.xml
+5
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_jio_js.xml
...ui/PathTemplateItem/web_page_module/rjs_gadget_jio_js.xml
+7
-6
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_bin_js.xml
View file @
a712c555
...
@@ -101,9 +101,9 @@
...
@@ -101,9 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global jQuery, rJS, RSVP, Handlebars, initGadgetMixin */\n
/*global jQuery, rJS, RSVP, Handlebars, initGadgetMixin
, window, document
*/\n
/*jslint nomen: true */\n
/*jslint nomen: true
, indent: 2, maxerr: 3
*/\n
(function (window, $, rJS, RSVP, Handlebars, initGadgetMixin) {\n
(function (window,
document,
$, rJS, RSVP, Handlebars, initGadgetMixin) {\n
"use strict";\n
"use strict";\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// Desactivate jQuery Mobile URL management\n
// Desactivate jQuery Mobile URL management\n
...
@@ -641,7 +641,7 @@
...
@@ -641,7 +641,7 @@
}\n
}\n
});\n
});\n
});\n
});\n
}(window, jQuery, rJS, RSVP));
}(window,
document,
jQuery, rJS, RSVP));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -764,7 +764,7 @@
...
@@ -764,7 +764,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
romain
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -778,7 +778,7 @@
...
@@ -778,7 +778,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.8778.52375.55654
</string>
</value>
<value>
<string>
93
7.42762.14684.44987
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -796,7 +796,7 @@
...
@@ -796,7 +796,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
05933454.75
</float>
<float>
14
11050883.77
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_codemirror_js.xml
View file @
a712c555
...
@@ -99,7 +99,9 @@
...
@@ -99,7 +99,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
(function (window, rJS, RSVP, CodeMirror) {\n
<value>
<string>
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*global window, rJS, CodeMirror */\n
(function (window, rJS, CodeMirror) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -129,13 +131,13 @@
...
@@ -129,13 +131,13 @@
vimMode: true,\n
vimMode: true,\n
matchBrackets: true,\n
matchBrackets: true,\n
showCursorWhenSelecting: true,\n
showCursorWhenSelecting: true,\n
autofocus: false
,
\n
autofocus: false\n
});\n
});\n
\n
\n
});\n
});\n
\n
\n
// CodeMirror.commands.save = function(){ alert("Saving"); };\n
// CodeMirror.commands.save = function(){ alert("Saving"); };\n
}(window, rJS,
RSVP,
CodeMirror));
</string>
</value>
}(window, rJS, CodeMirror));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -270,7 +272,7 @@
...
@@ -270,7 +272,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.25841.6645.4881
0
</string>
</value>
<value>
<string>
93
7.42768.23617.2589
0
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -288,7 +290,7 @@
...
@@ -288,7 +290,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
06103469.44
</float>
<float>
14
11051242.17
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_breadcrumb_js.xml
View file @
a712c555
...
@@ -99,12 +99,9 @@
...
@@ -99,12 +99,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global rJS, RSVP, jQuery, Handlebars,\n
<value>
<string>
/*jslint indent: 2, maxerr: 3 */\n
promiseEventListener, console */\n
/*global URI, document, window, rJS */\n
/*jslint nomen: true */\n
(function (URI, document, window, rJS) {\n
/*global window, rJS, RSVP, StatelessJS, alert, FormData, document, console */\n
/*jslint maxlen:200, nomen: true */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -166,9 +163,9 @@
...
@@ -166,9 +163,9 @@
parent_element.appendChild(link_element);\n
parent_element.appendChild(link_element);\n
});\n
});\n
}\n
}\n
});\n
});\n
\n
\n
}(
window, rJS, RSVP
));
</string>
</value>
}(
URI, document, window, rJS
));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -289,7 +286,7 @@
...
@@ -289,7 +286,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -303,7 +300,7 @@
...
@@ -303,7 +300,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.
8179.20788.60245
</string>
</value>
<value>
<string>
937.
42799.61797.63761
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -321,7 +318,7 @@
...
@@ -321,7 +318,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
08976172
.25
</float>
<float>
14
11053138
.25
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_floatfield_js.xml
View file @
a712c555
...
@@ -99,8 +99,9 @@
...
@@ -99,8 +99,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global window, rJS, console, RSVP */\n
<value>
<string>
/*global window, rJS */\n
(function (rJS) {\n
/*jslint indent: 2, maxerr: 3 */\n
(function (window, rJS) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -133,7 +134,7 @@
...
@@ -133,7 +134,7 @@
return result;\n
return result;\n
});\n
});\n
\n
\n
}(rJS));
</string>
</value>
}(
window,
rJS));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -268,7 +269,7 @@
...
@@ -268,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.48879.33714.580
</string>
</value>
<value>
<string>
93
7.42715.45132.18756
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -286,7 +287,7 @@
...
@@ -286,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
07485752.3
</float>
<float>
14
11053203.71
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_form_js.xml
View file @
a712c555
...
@@ -101,12 +101,9 @@
...
@@ -101,12 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global rJS, RSVP, jQuery, Handlebars,\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
promiseEventListener, console */\n
/*global window, document, rJS, RSVP*/\n
/*jslint nomen: true */\n
(function (window, document, rJS, RSVP) {\n
/*global window, rJS, RSVP, StatelessJS, alert, FormData, document, console */\n
/*jslint maxlen:200, nomen: true */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -132,7 +129,7 @@
...
@@ -132,7 +129,7 @@
});\n
});\n
})\n
})\n
\n
\n
.declareAcquiredMethod("aq_put", "jio_put")\n
.declareAcquiredMethod("aq_put", "jio_put")\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -154,7 +151,7 @@
...
@@ -154,7 +151,7 @@
form_gadget.state_parameter_dict = options.form_gadget || {};\n
form_gadget.state_parameter_dict = options.form_gadget || {};\n
// XXX Hardcoded for searchfield - remove later!\n
// XXX Hardcoded for searchfield - remove later!\n
if (form_definition.extended_search) {\n
if (form_definition.extended_search) {\n
suboption_dict.extended_search = form_definition.extended_search;\n
suboption_dict.extended_search = form_definition.extended_search;\n
}\n
}\n
\n
\n
form_gadget.props.gadget_list = [];\n
form_gadget.props.gadget_list = [];\n
...
@@ -167,7 +164,7 @@
...
@@ -167,7 +164,7 @@
fieldset_element = document.createElement("fieldset"),\n
fieldset_element = document.createElement("fieldset"),\n
group_queue = new RSVP.Queue();\n
group_queue = new RSVP.Queue();\n
\n
\n
function addField(field
, scope
) {\n
function addField(field) {\n
group_queue.push(function () {\n
group_queue.push(function () {\n
if (rendered_form.hasOwnProperty(field[0])) {\n
if (rendered_form.hasOwnProperty(field[0])) {\n
// Field is enabled in this context\n
// Field is enabled in this context\n
...
@@ -252,41 +249,39 @@
...
@@ -252,41 +249,39 @@
\n
\n
\n
\n
.declareMethod("getContent", function () {\n
.declareMethod("getContent", function () {\n
var form_gadget = this;\n
var form_gadget = this,\n
k,\n
field_gadget,\n
count = form_gadget.props.gadget_list.length,\n
data = {},\n
queue = new RSVP.Queue();\n
\n
\n
var k,\n
function extendData(field_data) {\n
field_gadget,\n
var key;\n
count = form_gadget.props.gadget_list.length,\n
for (key in field_data) {\n
// // data = new FormData(),\n
if (field_data.hasOwnProperty(key)) {\n
data = {},\n
data[key] = field_data[key];\n
queue = new RSVP.Queue();\n
\n
function extendData(field_data) {\n
var key;\n
for (key in field_data) {\n
if (field_data.hasOwnProperty(key)) {\n
data[key] = field_data[key];\n
}\n
}\n
}\n
}\n
}\n
}\n
\n
\n
for (k = 0; k < count; k += 1) {\n
for (k = 0; k < count; k += 1) {\n
field_gadget = form_gadget.props.gadget_list[k];\n
field_gadget = form_gadget.props.gadget_list[k];\n
// XXX Hack until better defined\n
// XXX Hack until better defined\n
if (field_gadget.getContent !== undefined) {\n
if (field_gadget.getContent !== undefined) {\n
queue\n
queue\n
.push(field_gadget.getContent.bind(field_gadget))\n
.push(field_gadget.getContent.bind(field_gadget))\n
.push(extendData);\n
.push(extendData);\n
}\n
}\n
}\n
return queue\n
}\n
.push(function () {\n
return queue\n
return data;\n
.push(function () {\n
});\n
return data;\n
});\n
\n
\n
});\n
});\n
\n
\n
}(window, rJS, RSVP));
}(window,
document,
rJS, RSVP));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -409,7 +404,7 @@
...
@@ -409,7 +404,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -423,7 +418,7 @@
...
@@ -423,7 +418,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.56175.55013.14626
</string>
</value>
<value>
<string>
93
7.42816.54745.57241
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -441,7 +436,7 @@
...
@@ -441,7 +436,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
07924093.61
</float>
<float>
14
11054146.03
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
View file @
a712c555
...
@@ -101,9 +101,9 @@
...
@@ -101,9 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global
rJS, RSVP, jQuery, URI, console, $
*/\n
/*global
window, document, rJS, RSVP, jQuery, URI, console, jQuery
*/\n
/*jslint
indent: 2, maxlen: 80, nomen: true
*/\n
/*jslint
nomen: true, indent: 2, maxerr: 3
*/\n
(function (
rJS, RSVP, URI
) {\n
(function (
window, document, rJS, RSVP, $, URI, console
) {\n
"use strict";\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -127,7 +127,7 @@
...
@@ -127,7 +127,7 @@
});\n
});\n
}\n
}\n
\n
\n
function renderFrontpage(gadget
, options
) {\n
function renderFrontpage(gadget) {\n
return gadget.props.breadcrumb_gadget.render({title: "ERP5"})\n
return gadget.props.breadcrumb_gadget.render({title: "ERP5"})\n
.push(function () {\n
.push(function () {\n
return gadget.declareGadget(gadget.props.frontpage_gadget, {\n
return gadget.declareGadget(gadget.props.frontpage_gadget, {\n
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
});\n
});\n
}\n
}\n
\n
\n
function renderLoginForm(gadget
, options
) {\n
function renderLoginForm(gadget) {\n
return gadget.props.breadcrumb_gadget.render({title: "Login"})\n
return gadget.props.breadcrumb_gadget.render({title: "Login"})\n
.push(function () {\n
.push(function () {\n
return gadget.declareGadget("gadget_erp5_pt_loginform.html", {\n
return gadget.declareGadget("gadget_erp5_pt_loginform.html", {\n
...
@@ -206,11 +206,11 @@
...
@@ -206,11 +206,11 @@
sub_options.view = options.view;\n
sub_options.view = options.view;\n
sub_options.action_view = gadget.props.action_view;\n
sub_options.action_view = gadget.props.action_view;\n
\n
\n
return RSVP.all([\n
return RSVP.all([\n
gadget.declareGadget("gadget_erp5_pt_" + sub_options.form_definition.pt + ".html", {\n
gadget.declareGadget("gadget_erp5_pt_" + sub_options.form_definition.pt + ".html", {\n
scope: "form_gadget"\n
scope: "form_gadget"\n
})\n
})\n
]);\n
]);\n
})\n
})\n
.push(function (gadget_list) {\n
.push(function (gadget_list) {\n
var form_gadget = gadget_list[0],\n
var form_gadget = gadget_list[0],\n
...
@@ -255,15 +255,15 @@
...
@@ -255,15 +255,15 @@
// Init local properties\n
// Init local properties\n
.ready(function (g) {\n
.ready(function (g) {\n
g.props = {\n
g.props = {\n
frontpage_gadget: "gadget_erp5_pt_frontpage.html",\n
frontpage_gadget: "gadget_erp5_pt_frontpage.html",\n
hateoas_url: "hateoas/",\n
hateoas_url: "hateoas/",\n
action_view: "action_object_view",\n
action_view: "action_object_view",\n
default_view_reference: "view",
\n
default_view_reference: "view"
\n
};\n
};\n
return g.getDeclaredGadget("breadcrumb")\n
return g.getDeclaredGadget("breadcrumb")\n
.push(function (sub_gadget) {\n
.push(function (sub_gadget) {\n
g.props.breadcrumb_gadget = sub_gadget;\n
g.props.breadcrumb_gadget = sub_gadget;\n
});\n
});\n
})\n
})\n
\n
\n
// Configure jIO to use localstorage\n
// Configure jIO to use localstorage\n
...
@@ -352,10 +352,11 @@
...
@@ -352,10 +352,11 @@
// Render the page\n
// Render the page\n
.declareMethod(\'render\', function (options) {\n
.declareMethod(\'render\', function (options) {\n
var gadget = this,\n
var gadget = this,\n
new_element,\n
queue;\n
queue;\n
\n
\n
if (options.jio_key === undefined) {\n
if (options.jio_key === undefined) {\n
var
new_element = gadget.__element.querySelector(".ui-icon-plus");\n
new_element = gadget.__element.querySelector(".ui-icon-plus");\n
new_element.href = "";\n
new_element.href = "";\n
if (!new_element.classList.contains("ui-disabled")) {\n
if (!new_element.classList.contains("ui-disabled")) {\n
new_element.classList.add("ui-disabled");\n
new_element.classList.add("ui-disabled");\n
...
@@ -392,10 +393,10 @@
...
@@ -392,10 +393,10 @@
\n
\n
// add all HTML nodes to fragment\n
// add all HTML nodes to fragment\n
for (i = 0, len = response_list.length; i < len; i += 1) {\n
for (i = 0, len = response_list.length; i < len; i += 1) {\n
item = response_list[i] || {};\n
item = response_list[i] || {};\n
if (item.nodeType && item.nodeType
== 1) {\n
if (item.nodeType && item.nodeType =
== 1) {\n
fragment.appendChild(item);\n
fragment.appendChild(item);\n
}\n
}\n
}\n
}\n
\n
\n
// Clear first to DOM, append after to reduce flickering/manip\n
// Clear first to DOM, append after to reduce flickering/manip\n
...
@@ -420,7 +421,7 @@
...
@@ -420,7 +421,7 @@
});\n
});\n
});\n
});\n
\n
\n
}(
rJS, RSVP, URI
));
}(
window, document, rJS, RSVP, jQuery, URI, console
));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -543,7 +544,7 @@
...
@@ -543,7 +544,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -557,7 +558,7 @@
...
@@ -557,7 +558,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.
22192.46889.64802
</string>
</value>
<value>
<string>
937.
42777.53771.30873
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -575,7 +576,7 @@
...
@@ -575,7 +576,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
09819356.02
</float>
<float>
14
11051824.11
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
a712c555
...
@@ -101,9 +101,9 @@
...
@@ -101,9 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*
global window, rJS, document, RSVP, URI, console
*/\n
/*
jslint indent: 2, maxerr: 3
*/\n
/*
jslint maxlen:120, nomen: true
*/\n
/*
global window, document, rJS, URI, RSVP
*/\n
(function (
rJS, document, RSVP, window, URI
) {\n
(function (
window, document, rJS, URI, RSVP
) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -203,8 +203,10 @@
...
@@ -203,8 +203,10 @@
tr,\n
tr,\n
th,\n
th,\n
a,\n
a,\n
result =
dataset =
result_list[0],\n
result = result_list[0],\n
tmp_url;\n
tmp_url;\n
\n
dataset = result;\n
\n
\n
for (i = 0; i < counter; i += 1) {\n
for (i = 0; i < counter; i += 1) {\n
tr = document.createElement("tr");\n
tr = document.createElement("tr");\n
...
@@ -265,7 +267,7 @@
...
@@ -265,7 +267,7 @@
paging_prev.textContent = "Previous";\n
paging_prev.textContent = "Previous";\n
paging_prev.href = url_list[0];\n
paging_prev.href = url_list[0];\n
paging_info.className = "ui-btn ui-disabled custom-readonly";\n
paging_info.className = "ui-btn ui-disabled custom-readonly";\n
paging_info.textContent = "Page " + ((begin_from + lines)
/
lines);\n
paging_info.textContent = "Page " + ((begin_from + lines)
/
lines);\n
paging_next.className = "ui-btn ui-icon-carat-r ui-btn-icon-right ui-last-child";\n
paging_next.className = "ui-btn ui-icon-carat-r ui-btn-icon-right ui-last-child";\n
paging_next.textContent = "Next";\n
paging_next.textContent = "Next";\n
paging_next.href = url_list[1];\n
paging_next.href = url_list[1];\n
...
@@ -296,7 +298,7 @@
...
@@ -296,7 +298,7 @@
});\n
});\n
});\n
});\n
\n
\n
}(
rJS, document, RSVP, window, URI
));
}(
window, document, rJS, URI, RSVP
));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -419,7 +421,7 @@
...
@@ -419,7 +421,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -433,7 +435,7 @@
...
@@ -433,7 +435,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.38910.37618.18432
</string>
</value>
<value>
<string>
93
7.42823.42032.43861
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -451,7 +453,7 @@
...
@@ -451,7 +453,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
06887627.77
</float>
<float>
14
11054572.53
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listfield_js.xml
View file @
a712c555
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS, Handlebars */\n
/*global window, rJS, Handlebars */\n
/*jslint nomen: true */\n
/*jslint nomen: true
, indent: 2, maxerr: 3
*/\n
(function (window, rJS, Handlebars) {\n
(function (window, rJS, Handlebars) {\n
"use strict";\n
"use strict";\n
\n
\n
...
@@ -292,7 +292,7 @@
...
@@ -292,7 +292,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.47463.9384.63232
</string>
</value>
<value>
<string>
93
7.42824.63714.12373
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -310,7 +310,7 @@
...
@@ -310,7 +310,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
07400855.36
</float>
<float>
14
11054676.69
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
View file @
a712c555
...
@@ -101,12 +101,9 @@
...
@@ -101,12 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global rJS, RSVP, jQuery, Handlebars,\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
promiseEventListener, console */\n
/*global window, rJS, RSVP, FormData, jIO*/\n
/*jslint nomen: true */\n
(function (window, rJS, RSVP, FormData, jIO) {\n
/*global window, rJS, RSVP, StatelessJS, alert, FormData, document, console */\n
/*jslint maxlen:200, nomen: true */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -232,7 +229,7 @@
...
@@ -232,7 +229,7 @@
);\n
);\n
});\n
});\n
\n
\n
}(window, rJS, RSVP));
}(window, rJS, RSVP
, FormData, jIO
));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -369,7 +366,7 @@
...
@@ -369,7 +366,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.46364.59346.52275
</string>
</value>
<value>
<string>
93
7.42828.64511.54152
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -387,7 +384,7 @@
...
@@ -387,7 +384,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
07335049.69
</float>
<float>
14
11054893.66
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
a712c555
...
@@ -99,10 +99,8 @@
...
@@ -99,10 +99,8 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global rJS, RSVP, jQuery, Handlebars,\n
<value>
<string>
/*global window, rJS, RSVP */\n
promiseEventListener, console */\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*global window, rJS, RSVP, StatelessJS, alert, FormData, document, console */\n
/*jslint maxlen:200, nomen: true */\n
(function (window, rJS, RSVP) {\n
(function (window, rJS, RSVP) {\n
"use strict";\n
"use strict";\n
\n
\n
...
@@ -111,9 +109,9 @@
...
@@ -111,9 +109,9 @@
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.declareMethod(\'render\', function (options) {\n
.declareMethod(\'render\', function (options) {\n
var gadget = this
;
\n
var gadget = this
,
\n
var form_options = options.erp5_form || {};
\n
form_options = options.erp5_form || {},
\n
var
search_options = {};\n
search_options = {};\n
\n
\n
form_options.erp5_document = options.erp5_document;\n
form_options.erp5_document = options.erp5_document;\n
form_options.form_definition = options.form_definition;\n
form_options.form_definition = options.form_definition;\n
...
@@ -261,7 +259,7 @@
...
@@ -261,7 +259,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -275,7 +273,7 @@
...
@@ -275,7 +273,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.38886.21323.13414
</string>
</value>
<value>
<string>
93
7.42830.22069.25770
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -293,7 +291,7 @@
...
@@ -293,7 +291,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
06887769.32
</float>
<float>
14
11054986.85
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_view_js.xml
View file @
a712c555
...
@@ -101,12 +101,9 @@
...
@@ -101,12 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global rJS, RSVP, jQuery, Handlebars,\n
/*global window, document, rJS, RSVP, Handlebars, loopEventListener */\n
promiseEventListener, console */\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*jslint nomen: true */\n
(function (window, document, rJS, RSVP, Handlebars, loopEventListener) {\n
/*global window, rJS, RSVP, StatelessJS, alert, FormData, document, console */\n
/*jslint maxlen:200, nomen: true */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -144,8 +141,8 @@
...
@@ -144,8 +141,8 @@
});\n
});\n
})\n
})\n
\n
\n
.declareAcquiredMethod("aq_put", "jio_put")\n
.declareAcquiredMethod("aq_put", "jio_put")\n
.declareAcquiredMethod("whoWantToDisplayThisPage", "whoWantToDisplayThisPage")\n
.declareAcquiredMethod("whoWantToDisplayThisPage", "whoWantToDisplayThisPage")\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -156,7 +153,7 @@
...
@@ -156,7 +153,7 @@
form_gadget = this,\n
form_gadget = this,\n
promise_list = [],\n
promise_list = [],\n
i;\n
i;\n
\n
\n
for (i = 0; i < action_list.length; i += 1) {\n
for (i = 0; i < action_list.length; i += 1) {\n
promise_list.push(this.whoWantToDisplayThisPage({\n
promise_list.push(this.whoWantToDisplayThisPage({\n
name: action_list[i].name\n
name: action_list[i].name\n
...
@@ -180,39 +177,39 @@
...
@@ -180,39 +177,39 @@
all_result = all_gadget[2],\n
all_result = all_gadget[2],\n
actionlist = [],\n
actionlist = [],\n
class_list,\n
class_list,\n
i
;\n
j
;\n
\n
\n
form_options.erp5_document = options.erp5_document;\n
form_options.erp5_document = options.erp5_document;\n
form_options.form_definition = options.form_definition;\n
form_options.form_definition = options.form_definition;\n
form_options.view = options.view;\n
form_options.view = options.view;\n
\n
\n
tab_options.erp5_document = options.erp5_document;\n
tab_options.erp5_document = options.erp5_document;\n
tab_options.form_definition = options.form_definition;\n
tab_options.form_definition = options.form_definition;\n
tab_options.view = options.view;\n
tab_options.view = options.view;\n
tab_options.action_view = options.action_view;\n
tab_options.action_view = options.action_view;\n
\n
\n
for (
i = 0; i < all_result.length; i
+= 1) {\n
for (
j = 0; j < all_result.length; j
+= 1) {\n
switch (
i
) {\n
switch (
j
) {\n
case 0:\n
case 0:\n
class_list = "ui-btn ui-first-child";\n
class_list = "ui-btn ui-first-child";\n
break;\n
break;\n
case (all_result.length - 1):\n
case (all_result.length - 1):\n
class_list = "ui-btn ui-last-child";\n
class_list = "ui-btn ui-last-child";\n
break;\n
break;\n
default:\n
default:\n
class_list = "ui-btn";\n
class_list = "ui-btn";\n
break;\n
break;\n
}\n
}\n
actionlist.push({\n
actionlist.push({\n
class: class_list,\n
class: class_list,\n
title: action_list[
i
].title,\n
title: action_list[
j
].title,\n
link: all_result[
i],
\n
link: all_result[
j]
\n
});\n
});\n
}\n
}\n
form_gadget.__element.appendChild(fragment);\n
form_gadget.__element.appendChild(fragment);\n
form_gadget.__element.querySelector("div.ui-controlgroup-controls")\n
form_gadget.__element.querySelector("div.ui-controlgroup-controls")\n
.innerHTML = workflow_template({actionlist: actionlist});\n
.innerHTML = workflow_template({actionlist: actionlist});\n
\n
\n
\n
\n
return RSVP.all([\n
return RSVP.all([\n
all_gadget[0].render(tab_options),\n
all_gadget[0].render(tab_options),\n
...
@@ -232,9 +229,9 @@
...
@@ -232,9 +229,9 @@
return erp5_form.getContent();\n
return erp5_form.getContent();\n
})\n
})\n
.push(function (data) {\n
.push(function (data) {\n
data
["_id"]
= form_gadget.props.id;\n
data
._id
= form_gadget.props.id;\n
return form_gadget.aq_put(data, {"_view": form_gadget.props.view});\n
return form_gadget.aq_put(data, {"_view": form_gadget.props.view});\n
})\n
})
;
\n
}\n
}\n
\n
\n
// Listen to form submit\n
// Listen to form submit\n
...
@@ -244,9 +241,9 @@
...
@@ -244,9 +241,9 @@
false,\n
false,\n
formSubmit\n
formSubmit\n
);\n
);\n
});\n
});\n
\n
\n
}(window,
rJS, RSVP
));
}(window,
document, rJS, RSVP, Handlebars, loopEventListener
));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -369,7 +366,7 @@
...
@@ -369,7 +366,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -383,7 +380,7 @@
...
@@ -383,7 +380,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.
22215.35138.1590
6
</string>
</value>
<value>
<string>
937.
42837.59193.4022
6
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -401,7 +398,7 @@
...
@@ -401,7 +398,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
09818069.12
</float>
<float>
14
11055410.1
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_frontpage_js.xml
View file @
a712c555
...
@@ -101,8 +101,8 @@
...
@@ -101,8 +101,8 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global
rJS, RSVP, Handlebars, initGadgetMixin
*/\n
/*global
window, rJS, RSVP, Handlebars
*/\n
/*jslint nomen: true */\n
/*jslint nomen: true
, indent: 2, maxerr: 3
*/\n
(function (window, rJS, RSVP, Handlebars) {\n
(function (window, rJS, RSVP, Handlebars) {\n
"use strict";\n
"use strict";\n
\n
\n
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (
options
) {\n
.declareMethod("render", function () {\n
var gadget = this;\n
var gadget = this;\n
\n
\n
return gadget.jio_allDocs({\n
return gadget.jio_allDocs({\n
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
title: doc[1]\n
title: doc[1]\n
};\n
};\n
}\n
}\n
\n
\n
parameter_list.sort(function (a, b) {\n
parameter_list.sort(function (a, b) {\n
var result = 0;\n
var result = 0;\n
if (a.title < b.title) {\n
if (a.title < b.title) {\n
...
@@ -326,7 +326,7 @@
...
@@ -326,7 +326,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.39090.50399.1467
</string>
</value>
<value>
<string>
93
7.42839.47775.36010
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -344,7 +344,7 @@
...
@@ -344,7 +344,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
07400113.3
</float>
<float>
14
11055530.72
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_loginform_js.xml
View file @
a712c555
...
@@ -99,9 +99,9 @@
...
@@ -99,9 +99,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global
rJS, RSVP, Handlebars, initGadgetMixin
*/\n
<value>
<string>
/*global
window, document, rJS, RSVP, promiseEventListener
*/\n
/*jslint
nomen: true
*/\n
/*jslint
indent: 2, maxerr: 3
*/\n
(function (window,
rJS, RSVP
) {\n
(function (window,
document, rJS, RSVP, promiseEventListener
) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (
options
) {\n
.declareMethod("render", function () {\n
return "ok";\n
return "ok";\n
})\n
})\n
\n
\n
...
@@ -155,8 +155,8 @@
...
@@ -155,8 +155,8 @@
\n
\n
});\n
});\n
\n
\n
});\n
});\n
}(window,
rJS, RSVP
));
</string>
</value>
}(window,
document, rJS, RSVP, promiseEventListener
));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -291,7 +291,7 @@
...
@@ -291,7 +291,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.38838.60120.11025
</string>
</value>
<value>
<string>
93
7.42844.47051.28194
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -309,7 +309,7 @@
...
@@ -309,7 +309,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
06886785.69
</float>
<float>
14
11055816.03
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_readonlyfield_js.xml
View file @
a712c555
...
@@ -99,8 +99,9 @@
...
@@ -99,8 +99,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global window, rJS, console, RSVP */\n
<value>
<string>
/*global window, rJS */\n
(function (rJS) {\n
/*jslint indent: 2, maxerr: 3 */\n
(function (window, rJS) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -120,7 +121,7 @@
...
@@ -120,7 +121,7 @@
return {};\n
return {};\n
});\n
});\n
\n
\n
}(rJS));
</string>
</value>
}(
window,
rJS));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -255,7 +256,7 @@
...
@@ -255,7 +256,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.35997.62527.57105
</string>
</value>
<value>
<string>
93
7.42715.45132.18756
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -273,7 +274,7 @@
...
@@ -273,7 +274,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
06712967.57
</float>
<float>
14
11055878.45
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
View file @
a712c555
...
@@ -99,75 +99,73 @@
...
@@ -99,75 +99,73 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global
rJS, RSVP, jQuery, Handlebars, promiseEventListener, console
*/\n
<value>
<string>
/*global
window, rJS, RSVP, loopEventListener
*/\n
/*jslint
maxlen:200, nomen: true
*/\n
/*jslint
nomen: true, indent: 2, maxerr: 3
*/\n
(function (window, rJS, RSVP,
$
) {\n
(function (window, rJS, RSVP,
loopEventListener
) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// ready\n
// ready\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// Init local properties\n
// Init local properties\n
.ready(function (g) {\n
.ready(function (g) {\n
g.props = {};\n
g.props = {};\n
})\n
})\n
\n
\n
// Assign the element to a variable\n
// Assign the element to a variable\n
.ready(function (g) {\n
.ready(function (g) {\n
return g.getElement()\n
return g.getElement()\n
.push(function (element) {\n
.push(function (element) {\n
g.props.element = element;\n
g.props.element = element;\n
});\n
});\n
})\n
})\n
\n
.declareAcquiredMethod("pleasePublishMyState", "pleasePublishMyState")\n
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
.declareMethod(\'render\', function (options) {\n
this.props.element.querySelector("input").value = options.extended_search || "";\n
})\n
\n
\n
.declareMethod(\'getContent\', function () {\n
.declareAcquiredMethod("pleasePublishMyState", "pleasePublishMyState")\n
var input = this.__element.querySelector(\'input\'),\n
.declareAcquiredMethod("pleaseRedirectMyHash", "pleaseRedirectMyHash")\n
result = {};\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
.declareMethod(\'render\', function (options) {\n
this.props.element.querySelector("input").value = options.extended_search || "";\n
})\n
\n
\n
result[input.getAttribute(\'name\')] = input.value;
\n
.declareMethod(\'getContent\', function () {
\n
return result;
\n
var input = this.__element.querySelector(\'input\'),
\n
})
\n
result = {};
\n
\n
\n
.declareService(function () {\n
result[input.getAttribute(\'name\')] = input.value;\n
var search_form = this;\n
return result;\n
})\n
\n
\n
function formSubmit
() {\n
.declareService(function
() {\n
var
form_data
;\n
var
search_form = this
;\n
\n
\n
return new RSVP.Queue()\n
function formSubmit() {\n
.push(function () {\n
return new RSVP.Queue()\n
return search_form.getContent();\n
.push(function () {\n
})\n
return search_form.getContent();\n
.push(function (data) {\n
})\n
return search_form.pleasePublishMyState({\n
.push(function (data) {\n
"extended_search": data.search\n
return search_form.pleasePublishMyState({\n
"extended_search": data.search\n
});\n
})\n
.push(function (url) {\n
return search_form.pleaseRedirectMyHash(url);\n
});\n
});\n
})\n
}\n
.push(function (url) {\n
\n
return search_form.pleaseRedirectMyHash(url);\n
// Listen to form submit\n
});\n
return loopEventListener(\n
}\n
search_form.props.element.querySelector(\'form\'),\n
\n
\'submit\',\n
// Listen to form submit\n
false,\n
return loopEventListener(\n
formSubmit\n
search_form.props.element.querySelector(\'form\'),\n
);\n
\'submit\',\n
});\n
false,\n
\n
formSubmit\n
}(window, rJS, RSVP, loopEventListener));
</string>
</value>
);\n
});\n
\n
}(window, rJS, RSVP, jQuery));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -288,7 +286,7 @@ rJS(window)\n
...
@@ -288,7 +286,7 @@ rJS(window)\n
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -302,7 +300,7 @@ rJS(window)\n
...
@@ -302,7 +300,7 @@ rJS(window)\n
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.57651.42687.62225
</string>
</value>
<value>
<string>
93
7.42848.57946.4044
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -320,7 +318,7 @@ rJS(window)\n
...
@@ -320,7 +318,7 @@ rJS(window)\n
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
08012236.29
</float>
<float>
14
11056079.35
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_stringfield_js.xml
View file @
a712c555
...
@@ -99,8 +99,9 @@
...
@@ -99,8 +99,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global window, rJS, console, RSVP */\n
<value>
<string>
/*global window, rJS */\n
(function (rJS) {\n
/*jslint indent: 2, maxerr: 3 */\n
(function (window, rJS) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -133,7 +134,7 @@
...
@@ -133,7 +134,7 @@
return result;\n
return result;\n
});\n
});\n
\n
\n
}(rJS));
</string>
</value>
}(
window,
rJS));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -254,7 +255,7 @@
...
@@ -254,7 +255,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -268,7 +269,7 @@
...
@@ -268,7 +269,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.43448.36188.1109
</string>
</value>
<value>
<string>
93
7.42715.45132.18756
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -286,7 +287,7 @@
...
@@ -286,7 +287,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
07160021.79
</float>
<float>
14
11056143.98
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_tab_list_js.xml
View file @
a712c555
...
@@ -101,12 +101,9 @@
...
@@ -101,12 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global rJS, RSVP, jQuery, Handlebars,\n
/*global window, rJS, Handlebars, RSVP */\n
promiseEventListener, console */\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*jslint nomen: true */\n
(function (window, rJS, Handlebars, RSVP) {\n
/*global window, rJS, RSVP, StatelessJS, alert, FormData, document, console */\n
/*jslint maxlen:200, nomen: true */\n
(function (window, rJS, RSVP, $) {\n
"use strict";\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -147,7 +144,7 @@
...
@@ -147,7 +144,7 @@
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.declareMethod(\'render\', function (options) {\n
.declareMethod(\'render\', function (options) {\n
var tab_gadget = this,
\n
var tab_gadget = this,\n
nav_element = tab_gadget.props.element.querySelector(".grid-container"),\n
nav_element = tab_gadget.props.element.querySelector(".grid-container"),\n
erp5_document = options.erp5_document,\n
erp5_document = options.erp5_document,\n
view_list = erp5_document._links[options.action_view],\n
view_list = erp5_document._links[options.action_view],\n
...
@@ -167,7 +164,7 @@
...
@@ -167,7 +164,7 @@
for (i = 0; i
< view_list.length
;
i
+=
1)
{\n
for (i = 0; i
< view_list.length
;
i
+=
1)
{\n
promise_list.push(this.whoWantToDisplayThisPage({\n
promise_list.push(this.whoWantToDisplayThisPage({\n
name:
view_list[i].name\n
name:
view_list[i].name\n
}));
\n
}));\n
}\n
}\n
return
new
RSVP.Queue()\n
return
new
RSVP.Queue()\n
.push(function
()
{\n
.push(function
()
{\n
...
@@ -178,12 +175,12 @@
...
@@ -178,12 +175,12 @@
if
(view_list[i]
.name =
==
options.view)
{\n
if
(view_list[i]
.name =
==
options.view)
{\n
nav_html
+=
active_navigation_template({\n
nav_html
+=
active_navigation_template({\n
title:
view_list[i].title,\n
title:
view_list[i].title,\n
link:
all_result[i]
,
\n
link:
all_result[i]\n
});\n
});\n
}
else
{\n
}
else
{\n
nav_html
+=
navigation_template({\n
nav_html
+=
navigation_template({\n
title:
view_list[i].title,\n
title:
view_list[i].title,\n
link:
all_result[i]
,
\n
link:
all_result[i]\n
});\n
});\n
}\n
}\n
\n
\n
...
@@ -196,7 +193,7 @@
...
@@ -196,7 +193,7 @@
\n
\n
});\n
});\n
\n
\n
}(window, rJS,
RSVP, jQuery
));
}(window, rJS,
Handlebars, RSVP
));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -319,7 +316,7 @@
...
@@ -319,7 +316,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -333,7 +330,7 @@
...
@@ -333,7 +330,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
937.
690.6828.44612
</string>
</value>
<value>
<string>
937.
42853.28217.34935
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -351,7 +348,7 @@
...
@@ -351,7 +348,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
09818434.1
</float>
<float>
14
11056327.35
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_textareafield_js.xml
View file @
a712c555
...
@@ -99,8 +99,9 @@
...
@@ -99,8 +99,9 @@
</item>
</item>
<item>
<item>
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string>
/*global window, rJS, console, RSVP */\n
<value>
<string>
/*global window, rJS */\n
(function (rJS) {\n
/*jslint indent: 2, maxerr: 3 */\n
(function (window, rJS) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -131,7 +132,7 @@
...
@@ -131,7 +132,7 @@
return result;\n
return result;\n
});\n
});\n
\n
\n
}(rJS));
</string>
</value>
}(
window,
rJS));
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -252,7 +253,7 @@
...
@@ -252,7 +253,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sve
n
</string>
</value>
<value>
<string>
romai
n
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -266,7 +267,7 @@
...
@@ -266,7 +267,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.56200.16330.49493
</string>
</value>
<value>
<string>
93
7.42715.45132.18756
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -284,7 +285,7 @@
...
@@ -284,7 +285,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
07925042.73
</float>
<float>
14
11056379.61
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_global_js.xml
View file @
a712c555
...
@@ -101,8 +101,8 @@
...
@@ -101,8 +101,8 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global RSVP, FileReader */\n
/*global
window,
RSVP, FileReader */\n
/*jslint unparam: true */\n
/*jslint
indent: 2, maxerr: 3,
unparam: true */\n
(function (window, RSVP, FileReader) {\n
(function (window, RSVP, FileReader) {\n
"use strict";\n
"use strict";\n
\n
\n
...
@@ -314,7 +314,7 @@
...
@@ -314,7 +314,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
romain
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -328,7 +328,7 @@
...
@@ -328,7 +328,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.16154.18438.49817
</string>
</value>
<value>
<string>
93
7.42855.7627.63982
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -346,7 +346,7 @@
...
@@ -346,7 +346,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
05933455.07
</float>
<float>
14
11056451.0
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_jio_js.xml
View file @
a712c555
...
@@ -101,8 +101,9 @@
...
@@ -101,8 +101,9 @@
<key>
<string>
text_content
</string>
</key>
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global rJS, jIO */\n
/*global window, rJS, jIO */\n
(function (rJS, jIO) {\n
/*jslint indent: 2, maxerr: 3 */\n
(function (window, rJS, jIO) {\n
"use strict";\n
"use strict";\n
\n
\n
rJS(window)\n
rJS(window)\n
...
@@ -156,7 +157,7 @@
...
@@ -156,7 +157,7 @@
return storage.post.apply(storage, arguments);\n
return storage.post.apply(storage, arguments);\n
});\n
});\n
\n
\n
}(rJS, jIO));
}(
window,
rJS, jIO));
]]>
</string>
</value>
]]>
</string>
</value>
</item>
</item>
...
@@ -279,7 +280,7 @@
...
@@ -279,7 +280,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
romain
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -293,7 +294,7 @@
...
@@ -293,7 +294,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
93
6.17267.5882.44902
</string>
</value>
<value>
<string>
93
7.42715.45132.18756
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -311,7 +312,7 @@
...
@@ -311,7 +312,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
05933455.01
</float>
<float>
14
11056501.97
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</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