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
Laurent S
erp5
Commits
63544bb8
Commit
63544bb8
authored
May 21, 2015
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_eproject: change listbox widget to bt5-specific, jslint
parent
da65fb8a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
920 additions
and
23 deletions
+920
-23
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_html.xml
..._module/gadget_e5g_eproject_field_listbox_widget_html.xml
+404
-0
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_js.xml
...ge_module/gadget_e5g_eproject_field_listbox_widget_js.xml
+492
-0
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_page_front_js.xml
...tem/web_page_module/gadget_e5g_eproject_page_front_js.xml
+11
-17
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_panel_js.xml
...lateItem/web_page_module/gadget_e5g_eproject_panel_js.xml
+13
-6
No files found.
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_html.xml
0 → 100644
View file @
63544bb8
This diff is collapsed.
Click to expand it.
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_field_listbox_widget_js.xml
0 → 100644
View file @
63544bb8
This diff is collapsed.
Click to expand it.
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_page_front_js.xml
View file @
63544bb8
...
@@ -98,11 +98,10 @@
...
@@ -98,11 +98,10 @@
<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 */\n
/*global window, rJS
, RSVP
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, RSVP) {\n
(function (window, rJS, RSVP) {\n
"use strict";\n
"use strict";\n
\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// api\n
// api\n
...
@@ -117,7 +116,7 @@
...
@@ -117,7 +116,7 @@
\n
\n
var HARDCODED_GRID_LIST = [\n
var HARDCODED_GRID_LIST = [\n
[{\n
[{\n
"gadget_href": "gadget_e
rp5
_field_listbox_widget.html",\n
"gadget_href": "gadget_e
5g_eproject
_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=project_module&view=view",\n
"gadget_portal_link": "#jio_key=project_module&view=view",\n
"gadget_title": "Projects",\n
"gadget_title": "Projects",\n
"gadget_portal": "Project",\n
"gadget_portal": "Project",\n
...
@@ -127,7 +126,7 @@
...
@@ -127,7 +126,7 @@
"limit": [0, 5]\n
"limit": [0, 5]\n
}\n
}\n
}, {\n
}, {\n
"gadget_href": "gadget_e
rp5
_field_listbox_widget.html",\n
"gadget_href": "gadget_e
5g_eproject
_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=task_module&view=view",\n
"gadget_portal_link": "#jio_key=task_module&view=view",\n
"gadget_title": "Tasks",\n
"gadget_title": "Tasks",\n
"gadget_portal": "Task",\n
"gadget_portal": "Task",\n
...
@@ -148,17 +147,14 @@
...
@@ -148,17 +147,14 @@
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
\n
\n
rJS(window)\n
rJS(window)\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// ready\n
// ready\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.ready(function (my_gadget) {\n
.ready(function (my_gadget) {\n
my_gadget.property_dict = {};\n
my_gadget.property_dict = {};\n
})\n
})\n
\n
\n
.ready(function (my_gadget) {\n
.ready(function (my_gadget) {\n
return my_gadget.getElement()\n
return my_gadget.getElement()\n
.push(function (my_element) {\n
.push(function (my_element) {\n
...
@@ -177,15 +173,15 @@
...
@@ -177,15 +173,15 @@
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// published methods\n
// published methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// declared service\n
// declared service\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (
my_option_dict
) {\n
.declareMethod("render", function () {\n
var gadget = this;\n
var gadget = this;\n
return new RSVP.Queue()\n
return new RSVP.Queue()\n
.push(function () {\n
.push(function () {\n
...
@@ -205,10 +201,8 @@
...
@@ -205,10 +201,8 @@
);\n
);\n
});\n
});\n
});\n
});\n
\n
\n
\n
}(window, rJS, RSVP));\n
}(window, rJS, RSVP));\n
\n
]]>
</string>
</value>
]]>
</string>
</value>
...
@@ -332,7 +326,7 @@
...
@@ -332,7 +326,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -346,7 +340,7 @@
...
@@ -346,7 +340,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
2.11653.29366.8516
</string>
</value>
<value>
<string>
94
3.10897.37416.8362
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -364,7 +358,7 @@
...
@@ -364,7 +358,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
28413212.46
</float>
<float>
14
32213573.87
</float>
<string>
GMT
</string>
<string>
GMT
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_eproject/PathTemplateItem/web_page_module/gadget_e5g_eproject_panel_js.xml
View file @
63544bb8
...
@@ -118,6 +118,7 @@
...
@@ -118,6 +118,7 @@
panel_template_body = Handlebars.compile(source_body);\n
panel_template_body = Handlebars.compile(source_body);\n
\n
\n
gadget_klass\n
gadget_klass\n
\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
// ready\n
// ready\n
/////////////////////////////////////////////////////////////////\n
/////////////////////////////////////////////////////////////////\n
...
@@ -212,7 +213,9 @@
...
@@ -212,7 +213,9 @@
\n
\n
return
new
RSVP.Queue()\n
return
new
RSVP.Queue()\n
.push(function
()
{\n
.push(function
()
{\n
return
panel_gadget.declareGadget("gadget_erp5_searchfield.html",
{"scope":
"search"});\n
return
panel_gadget.declareGadget("gadget_erp5_searchfield.html",
{\n
"scope":
"search"\n
});\n
})\n
})\n
.push(function
(my_search_gadget)
{\n
.push(function
(my_search_gadget)
{\n
var
parent_node,
search_option_dict =
{};\n
var
parent_node,
search_option_dict =
{};\n
...
@@ -225,7 +228,10 @@
...
@@ -225,7 +228,10 @@
search_option_dict.extended_search =
""
;\n
search_option_dict.extended_search =
""
;\n
parent_node =
panel_gadget.__element.querySelector(".ui-content");\n
parent_node =
panel_gadget.__element.querySelector(".ui-content");\n
\n
\n
parent_node.insertBefore(my_search_gadget.__element,
parent_node.firstChild);\n
parent_node.insertBefore(\n
my_search_gadget.__element,\n
parent_node.firstChild\n
);\n
return
my_search_gadget.render(search_option_dict);\n
return
my_search_gadget.render(search_option_dict);\n
})\n
})\n
.push(function
()
{\n
.push(function
()
{\n
...
@@ -273,7 +279,8 @@
...
@@ -273,7 +279,8 @@
});\n
});\n
});\n
});\n
\n
\n
}(window,
rJS,
Handlebars,
jQuery,
RSVP,
loopEventListener));
}(window,
rJS,
Handlebars,
jQuery,
RSVP,
loopEventListener));\n
]]
></string>
</value>
]]
></string>
</value>
</item>
</item>
...
@@ -396,7 +403,7 @@
...
@@ -396,7 +403,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -410,7 +417,7 @@
...
@@ -410,7 +417,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
2.12890.13377.61832
</string>
</value>
<value>
<string>
94
3.10881.65296.43776
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -428,7 +435,7 @@
...
@@ -428,7 +435,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
14
28487366.64
</float>
<float>
14
32213723.7
</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