Commit 231adcaf authored by Sven Franck's avatar Sven Franck

erp5_web_ecrm: jslint

parent 5157ee03
......@@ -98,11 +98,10 @@
<key> <string>text_content</string> </key>
<value> <string encoding="cdata"><![CDATA[
/*global window, rJS */\n
/*global window, rJS, RSVP */\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// api\n
......@@ -138,17 +137,14 @@
/////////////////////////////////////////////////////////////////\n
\n
rJS(window)\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
.ready(function (my_gadget) {\n
my_gadget.property_dict = {};\n
})\n
\n
\n
.ready(function (my_gadget) {\n
return my_gadget.getElement()\n
.push(function (my_element) {\n
......@@ -167,15 +163,15 @@
/////////////////////////////////////////////////////////////////\n
// published methods\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// declared service\n
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (my_option_dict) {\n
.declareMethod("render", function () {\n
var gadget = this;\n
return new RSVP.Queue()\n
.push(function () {\n
......@@ -195,10 +191,8 @@
);\n
});\n
});\n
\n
\n
}(window, rJS, RSVP));\n
\n
]]></string> </value>
......@@ -322,7 +316,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>sven</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -336,7 +330,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>942.11654.37592.32153</string> </value>
<value> <string>943.10699.20549.61815</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -354,7 +348,7 @@
</tuple>
<state>
<tuple>
<float>1428413201.98</float>
<float>1432201659.15</float>
<string>GMT</string>
</tuple>
</state>
......
......@@ -212,7 +212,9 @@
\n
return new RSVP.Queue()\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
.push(function (my_search_gadget) {\n
var parent_node, search_option_dict = {};\n
......@@ -225,7 +227,10 @@
search_option_dict.extended_search = "";\n
parent_node = panel_gadget.__element.querySelector(".ui-content");\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
})\n
.push(function () {\n
......@@ -273,7 +278,8 @@
});\n
});\n
\n
}(window, rJS, Handlebars, jQuery, RSVP, loopEventListener));
}(window, rJS, Handlebars, jQuery, RSVP, loopEventListener));\n
]]></string> </value>
</item>
......@@ -396,7 +402,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>sven</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -410,7 +416,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>942.13008.17686.37973</string> </value>
<value> <string>943.10686.32775.12612</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -428,7 +434,7 @@
</tuple>
<state>
<tuple>
<float>1428494426.21</float>
<float>1432201806.27</float>
<string>GMT</string>
</tuple>
</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