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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
39c29373
Commit
39c29373
authored
Nov 25, 2015
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Set 0 as default selection index
parent
9c7be042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
...emplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
+5
-5
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_router_js.xml
View file @
39c29373
...
@@ -450,7 +450,7 @@
...
@@ -450,7 +450,7 @@
return gadget.jio_allDocs({\n
return gadget.jio_allDocs({\n
"query": selection.query,\n
"query": selection.query,\n
"list_method_template": selection.list_method_template,\n
"list_method_template": selection.list_method_template,\n
"limit": [parseInt(previous_options.selection_index, 10) + 1, 1],\n
"limit": [parseInt(previous_options.selection_index
|| \'0\'
, 10) + 1, 1],\n
"sort_on": selection["sort_list:json"]\n
"sort_on": selection["sort_list:json"]\n
})\n
})\n
.push(function (result) {\n
.push(function (result) {\n
...
@@ -464,7 +464,7 @@
...
@@ -464,7 +464,7 @@
result.data.rows[0].id,\n
result.data.rows[0].id,\n
{\n
{\n
selection: previous_options.selection,\n
selection: previous_options.selection,\n
selection_index: parseInt(previous_options.selection_index, 10) + 1,\n
selection_index: parseInt(previous_options.selection_index
|| \'0\'
, 10) + 1,\n
history: previous_options.history\n
history: previous_options.history\n
}\n
}\n
);\n
);\n
...
@@ -491,7 +491,7 @@
...
@@ -491,7 +491,7 @@
// Redirect to the result document\n
// Redirect to the result document\n
return getSelection(gadget, previous_options.selection)\n
return getSelection(gadget, previous_options.selection)\n
.push(function (selection) {\n
.push(function (selection) {\n
if (parseInt(previous_options.selection_index, 10) < 1) {\n
if (parseInt(previous_options.selection_index
|| \'0\'
, 10) < 1) {\n
return synchronousChangeState(\n
return synchronousChangeState(\n
getCommandUrlFor(gadget, COMMAND_HISTORY_PREVIOUS, previous_options)\n
getCommandUrlFor(gadget, COMMAND_HISTORY_PREVIOUS, previous_options)\n
);\n
);\n
...
@@ -1014,7 +1014,7 @@
...
@@ -1014,7 +1014,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
947.22
368.33897.30037
</string>
</value>
<value>
<string>
947.22
494.14742.48810
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -1032,7 +1032,7 @@
...
@@ -1032,7 +1032,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
144846
3583.21
</float>
<float>
144846
5284.7
</float>
<string>
UTC
</string>
<string>
UTC
</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