Commit 73d35721 authored by Sven Franck's avatar Sven Franck

erp5_web_ehr: change listbox widget to bt5-specific, jslint

parent 12b42371
...@@ -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_erp5_field_listbox_widget.html",\n "gadget_href": "gadget_e5g_ecrm_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=position_opportunity_module&view=view",\n "gadget_portal_link": "#jio_key=position_opportunity_module&view=view",\n
"gadget_title": "Open Positions",\n "gadget_title": "Open Positions",\n
"gadget_portal": "Position Opportunity",\n "gadget_portal": "Position Opportunity",\n
...@@ -127,7 +126,7 @@ ...@@ -127,7 +126,7 @@
"limit": [0, 5]\n "limit": [0, 5]\n
}\n }\n
}, {\n }, {\n
"gadget_href": "gadget_erp5_field_listbox_widget.html",\n "gadget_href": "gadget_e5g_ecrm_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=position_announcement_module&view=view",\n "gadget_portal_link": "#jio_key=position_announcement_module&view=view",\n
"gadget_title": "Position Announcements",\n "gadget_title": "Position Announcements",\n
"gadget_portal": "Position Announcement",\n "gadget_portal": "Position Announcement",\n
...@@ -137,7 +136,7 @@ ...@@ -137,7 +136,7 @@
"limit": [0, 5]\n "limit": [0, 5]\n
}\n }\n
}, {\n }, {\n
"gadget_href": "gadget_erp5_field_listbox_widget.html",\n "gadget_href": "gadget_e5g_ecrm_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=position_module&view=view",\n "gadget_portal_link": "#jio_key=position_module&view=view",\n
"gadget_title": "Positions",\n "gadget_title": "Positions",\n
"gadget_portal": "Position",\n "gadget_portal": "Position",\n
...@@ -158,17 +157,14 @@ ...@@ -158,17 +157,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
...@@ -187,15 +183,15 @@ ...@@ -187,15 +183,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
...@@ -215,10 +211,8 @@ ...@@ -215,10 +211,8 @@
);\n );\n
});\n });\n
});\n });\n
\n
\n \n
}(window, rJS, RSVP));\n }(window, rJS, RSVP));\n
\n
]]></string> </value> ]]></string> </value>
...@@ -342,7 +336,7 @@ ...@@ -342,7 +336,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>
...@@ -356,7 +350,7 @@ ...@@ -356,7 +350,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>942.5902.49888.12731</string> </value> <value> <string>943.10739.23810.12168</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -374,7 +368,7 @@ ...@@ -374,7 +368,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1428413179.61</float> <float>1432204059.88</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
</script>\n </script>\n
\n \n
<!-- custom script -->\n <!-- custom script -->\n
<script src="gadget_e5g_eproject_panel.js" type="text/javascript"></script>\n <script src="gadget_e5g_ehr_panel.js" type="text/javascript"></script>\n
\n \n
</head>\n </head>\n
<body>\n <body>\n
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,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>
...@@ -317,7 +317,7 @@ ...@@ -317,7 +317,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>942.12904.39071.6604</string> </value> <value> <string>943.10732.49761.18961</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1428494521.01</float> <float>1432211639.42</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
...@@ -212,7 +212,9 @@ ...@@ -212,7 +212,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 +227,10 @@ ...@@ -225,7 +227,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 +278,8 @@ ...@@ -273,7 +278,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 +402,7 @@ ...@@ -396,7 +402,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 +416,7 @@ ...@@ -410,7 +416,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>942.12901.9110.57122</string> </value> <value> <string>943.10732.49761.18961</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -428,7 +434,7 @@ ...@@ -428,7 +434,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1428488109.58</float> <float>1432203929.33</float>
<string>GMT</string> <string>GMT</string>
</tuple> </tuple>
</state> </state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment