Commit 6401fd67 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Remove unused getGadgetPath calls

parent 0059e4c6
...@@ -202,8 +202,7 @@ ...@@ -202,8 +202,7 @@
select_list = [],\n select_list = [],\n
dataset,\n dataset,\n
counter,\n counter,\n
i,\n i;\n
gadget_path;\n
\n \n
if (field_json.query === undefined) {\n if (field_json.query === undefined) {\n
original_tfoot.textContent = "Unsupported list method: \'" + field_json.list_method + "\'";\n original_tfoot.textContent = "Unsupported list method: \'" + field_json.list_method + "\'";\n
...@@ -222,16 +221,12 @@ ...@@ -222,16 +221,12 @@
select_list.push(field_json.column_list[i][0]);\n select_list.push(field_json.column_list[i][0]);\n
}\n }\n
\n \n
return this.getGadgetPath()\n return gadget.jio_allDocs({\n
.push(function (result) {\n // XXX Not jIO compatible, but until a better api is found...\n
gadget_path = result;\n "list_method_template": field_json.list_method_template,\n
return gadget.jio_allDocs({\n "query": new URI(field_json.query).query(true).query + query_string,\n
// XXX Not jIO compatible, but until a better api is found...\n "limit": [begin_from, lines + 1],\n
"list_method_template": field_json.list_method_template,\n "select_list": select_list\n
"query": new URI(field_json.query).query(true).query + query_string,\n
"limit": [begin_from, lines + 1],\n
"select_list": select_list\n
});\n
}).push(function (result) {\n }).push(function (result) {\n
var promise_list = [result];\n var promise_list = [result];\n
counter = Math.min(result.data.total_rows, lines);\n counter = Math.min(result.data.total_rows, lines);\n
...@@ -595,7 +590,7 @@ ...@@ -595,7 +590,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>romain</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -609,7 +604,7 @@ ...@@ -609,7 +604,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.34578.58020.60808</string> </value> <value> <string>946.44927.40202.16725</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -627,8 +622,8 @@ ...@@ -627,8 +622,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1445266646.36</float> <float>1445939419.71</float>
<string>GMT</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
...@@ -121,12 +121,6 @@ ...@@ -121,12 +121,6 @@
});\n });\n
})\n })\n
\n \n
.ready(function (g) {\n
return g.getGadgetPath()\n
.push(function (path) {\n
g.props.path = path;\n
});\n
})\n
/////////////////////////////////////////////////////////////////\n /////////////////////////////////////////////////////////////////\n
// Acquired methods\n // Acquired methods\n
/////////////////////////////////////////////////////////////////\n /////////////////////////////////////////////////////////////////\n
...@@ -334,7 +328,7 @@ ...@@ -334,7 +328,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>romain</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -348,7 +342,7 @@ ...@@ -348,7 +342,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>946.34728.38206.10615</string> </value> <value> <string>946.44927.40202.16725</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -366,8 +360,8 @@ ...@@ -366,8 +360,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1445329431.72</float> <float>1445939450.54</float>
<string>GMT</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
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