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
Paul Graydon
erp5
Commits
6401fd67
Commit
6401fd67
authored
Oct 27, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Remove unused getGadgetPath calls
parent
0059e4c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
26 deletions
+15
-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
-16
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
+4
-10
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
6401fd67
...
@@ -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>
1445
266646.36
</float>
<float>
1445
939419.71
</float>
<string>
GMT
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
</object>
</object>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
6401fd67
...
@@ -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.1061
5
</string>
</value>
<value>
<string>
946.
44927.40202.1672
5
</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>
1445
329431.72
</float>
<float>
1445
939450.54
</float>
<string>
GMT
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
</object>
</object>
...
...
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