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
Laurent S
erp5
Commits
d8e8ef33
Commit
d8e8ef33
authored
Jun 02, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: add show anchor functionality in listbox
parent
ede26d08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
...tal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+1
-0
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
+20
-6
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
View file @
d8e8ef33
...
@@ -339,6 +339,7 @@ def renderField(field, form_relative_url, meta_type=None, key=None):\n
...
@@ -339,6 +339,7 @@ def renderField(field, form_relative_url, meta_type=None, key=None):\n
"column_list": column_list,\n
"column_list": column_list,\n
"search_column_list": search_column_list,\n
"search_column_list": search_column_list,\n
"editable_column_list": editable_column_list,\n
"editable_column_list": editable_column_list,\n
"show_anchor": field.get_value("anchor"),\n
# "line_list": line_list,\n
# "line_list": line_list,\n
"title": field.get_value("title"),\n
"title": field.get_value("title"),\n
"key": key,\n
"key": key,\n
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
d8e8ef33
...
@@ -151,13 +151,19 @@
...
@@ -151,13 +151,19 @@
tr = document.createElement("tr"),\n
tr = document.createElement("tr"),\n
document_table = gadget.props.element.querySelector(\'.document_table\'),\n
document_table = gadget.props.element.querySelector(\'.document_table\'),\n
th,\n
th,\n
length_table = field_json.column_list.length,\n
i;\n
i;\n
\n
\n
gadget.props.field_json = field_json;\n
gadget.props.field_json = field_json;\n
gadget.props.begin_from = parseInt(options.begin_from, 10) || 0;\n
gadget.props.begin_from = parseInt(options.begin_from, 10) || 0;\n
gadget.props.extended_search = options.extended_search;\n
gadget.props.extended_search = options.extended_search;\n
\n
if (field_json.show_anchor) {\n
for (i = 0; i < field_json.column_list.length; i += 1) {\n
th = document.createElement("th");\n
th.textContent = "Jump";\n
th.setAttribute("data-i18n", "Jump");\n
tr.appendChild(th);\n
}\n
for (i = 0; i < length_table; i += 1) {\n
th = document.createElement("th");\n
th = document.createElement("th");\n
th.textContent = field_json.column_list[i][1];\n
th.textContent = field_json.column_list[i][1];\n
th.setAttribute("data-i18n", field_json.column_list[i][1]);\n
th.setAttribute("data-i18n", field_json.column_list[i][1]);\n
...
@@ -292,6 +298,14 @@
...
@@ -292,6 +298,14 @@
tr = document.createElement("tr");\n
tr = document.createElement("tr");\n
tmp_url = result_list[i + 1];\n
tmp_url = result_list[i + 1];\n
\n
\n
if (field_json.show_anchor) {\n
th = document.createElement("th");\n
a = document.createElement("a");\n
a.href = tmp_url;\n
a.className = "ui-link ui-btn ui-corner-all ui-icon-carat-r ui-btn-icon-notext";\n
th.appendChild(a);\n
tr.appendChild(th);\n
}\n
for (j = 0; j < field_json.column_list.length; j += 1) {\n
for (j = 0; j < field_json.column_list.length; j += 1) {\n
th = document.createElement("th");\n
th = document.createElement("th");\n
value = result.data.rows[i].value[field_json.column_list[j][0]] || "";\n
value = result.data.rows[i].value[field_json.column_list[j][0]] || "";\n
...
@@ -584,7 +598,7 @@
...
@@ -584,7 +598,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
actor
</string>
</key>
<key>
<string>
actor
</string>
</key>
<value>
<string>
romain
</string>
</value>
<value>
<string>
xiaowu
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
comment
</string>
</key>
<key>
<string>
comment
</string>
</key>
...
@@ -598,7 +612,7 @@
...
@@ -598,7 +612,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
943.
18213.25268.2756
2
</string>
</value>
<value>
<string>
943.
26058.11320.2058
2
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -616,8 +630,8 @@
...
@@ -616,8 +630,8 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
143
2652509.88
</float>
<float>
143
3234504.32
</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