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
alecs_myu
erp5
Commits
3cdab18e
Commit
3cdab18e
authored
Jul 06, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: create th tag for each editable field
parent
64349604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
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
+9
-7
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
3cdab18e
...
@@ -274,6 +274,7 @@
...
@@ -274,6 +274,7 @@
a,\n
a,\n
result = result_list[0],\n
result = result_list[0],\n
tmp_url,\n
tmp_url,\n
tmp_div,\n
value,\n
value,\n
promise_list = [],\n
promise_list = [],\n
uid_value,\n
uid_value,\n
...
@@ -315,8 +316,8 @@
...
@@ -315,8 +316,8 @@
a.className = "ui-link";\n
a.className = "ui-link";\n
a.textContent = value;\n
a.textContent = value;\n
th.appendChild(a);\n
th.appendChild(a);\n
tr.appendChild(th);\n
} else {\n
} else {\n
tmp_div = document.createElement("div");\n
if (gadget.props.listbox_uid_dict.key === undefined) {\n
if (gadget.props.listbox_uid_dict.key === undefined) {\n
gadget.props.listbox_uid_dict.key = result.data.rows[i].value["listbox_uid:list"].key;\n
gadget.props.listbox_uid_dict.key = result.data.rows[i].value["listbox_uid:list"].key;\n
gadget.props.listbox_uid_dict.value = [result.data.rows[i].value["listbox_uid:list"].value];\n
gadget.props.listbox_uid_dict.value = [result.data.rows[i].value["listbox_uid:list"].value];\n
...
@@ -329,7 +330,7 @@
...
@@ -329,7 +330,7 @@
}\n
}\n
}\n
}\n
\n
\n
promise_list.push(renderSubCell(t
h
, value));\n
promise_list.push(renderSubCell(t
mp_div
, value));\n
\n
\n
//when a sub field is not editable but it\'s in listbox\'s editable colummn \n
//when a sub field is not editable but it\'s in listbox\'s editable colummn \n
//then create link, see ListBox.py line 2518\n
//then create link, see ListBox.py line 2518\n
...
@@ -337,12 +338,13 @@
...
@@ -337,12 +338,13 @@
a = document.createElement("a");\n
a = document.createElement("a");\n
a.href = tmp_url;\n
a.href = tmp_url;\n
a.className = "ui-link";\n
a.className = "ui-link";\n
a.appendChild(t
h
);\n
a.appendChild(t
mp_div
);\n
t
r
.appendChild(a);\n
t
h
.appendChild(a);\n
} else {\n
} else {\n
t
r.appendChild(th
);\n
t
h.appendChild(tmp_div
);\n
}\n
}\n
}\n
}\n
tr.appendChild(th);\n
}\n
}\n
\n
\n
tbody.appendChild(tr);\n
tbody.appendChild(tr);\n
...
@@ -625,7 +627,7 @@
...
@@ -625,7 +627,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
944.
8265.37712.58112
</string>
</value>
<value>
<string>
944.
12333.61899.20616
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -643,7 +645,7 @@
...
@@ -643,7 +645,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
143
5902335.94
</float>
<float>
143
6145492.07
</float>
<string>
GMT+2
</string>
<string>
GMT+2
</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