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
Labels
Merge Requests
138
Merge Requests
138
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
08a8a75f
Commit
08a8a75f
authored
Aug 23, 2021
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: clean up
parent
f3f44c09
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
14 deletions
+10
-14
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
...emplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
+8
-12
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
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
View file @
08a8a75f
/*jslint indent: 2, maxerr: 3, nomen: true */
/*jslint indent: 2, maxerr: 3, nomen: true */
/*global window, document, rJS, URI, RSVP, isEmpty, console, domsugar*/
/*global window, document, rJS, URI, RSVP, isEmpty, console, domsugar*/
(
function
(
window
,
document
,
rJS
,
URI
,
RSVP
,
isEmpty
,
console
,
domsugar
)
{
(
function
(
window
,
rJS
,
URI
,
RSVP
,
isEmpty
,
console
,
domsugar
)
{
"
use strict
"
;
"
use strict
"
;
var
variable
=
{},
var
variable
=
{},
...
@@ -745,7 +745,6 @@
...
@@ -745,7 +745,6 @@
domsugar
(
"
tfoot
"
)
domsugar
(
"
tfoot
"
)
]),
]),
th_element_list
=
[],
th_element_list
=
[],
tr_element
,
th_element
;
th_element
;
if
(
gadget
.
state
.
show_select_action
)
{
if
(
gadget
.
state
.
show_select_action
)
{
...
@@ -1154,11 +1153,10 @@
...
@@ -1154,11 +1153,10 @@
loading_element
.
textContent
=
'
(
'
+
pagination_message
+
'
)
'
;
loading_element
.
textContent
=
'
(
'
+
pagination_message
+
'
)
'
;
})
})
.
push
(
function
()
{
.
push
(
function
()
{
var
div
,
var
div
=
domsugar
(
"
div
"
,
{
"
class
"
:
"
graphic-section
"
})
,
gadget_list
=
[],
gadget_list
=
[],
domain_list
=
JSON
.
parse
(
gadget
.
state
.
domain_list_json
);
domain_list
=
JSON
.
parse
(
gadget
.
state
.
domain_list_json
);
div
=
domsugar
(
"
div
"
,
{
"
class
"
:
"
graphic-section
"
});
gadget
.
element
.
insertBefore
(
div
,
gadget
.
element
.
firstChild
);
gadget
.
element
.
appendChild
(
div
);
gadget_list
.
push
(
gadget_list
.
push
(
gadget
.
declareGadget
(
'
gadget_graphic.html
'
,
{
gadget
.
declareGadget
(
'
gadget_graphic.html
'
,
{
scope
:
'
gadget_graphic
'
,
scope
:
'
gadget_graphic
'
,
...
@@ -1169,7 +1167,7 @@
...
@@ -1169,7 +1167,7 @@
div
=
domsugar
(
"
div
"
,
{
div
=
domsugar
(
"
div
"
,
{
"
class
"
:
"
graphic-section
"
+
domain_list
[
i
][
0
]
"
class
"
:
"
graphic-section
"
+
domain_list
[
i
][
0
]
});
});
gadget
.
element
.
appendChild
(
div
);
gadget
.
element
.
insertBefore
(
div
,
gadget
.
element
.
firstChild
);
gadget_list
.
push
(
gadget_list
.
push
(
gadget
.
declareGadget
(
'
gadget_graphic.html
'
,
{
gadget
.
declareGadget
(
'
gadget_graphic.html
'
,
{
scope
:
'
gadget_graphic_
'
+
domain_list
[
i
][
0
],
scope
:
'
gadget_graphic_
'
+
domain_list
[
i
][
0
],
...
@@ -1187,7 +1185,6 @@
...
@@ -1187,7 +1185,6 @@
group_by
,
group_by
,
group_by_title
,
group_by_title
,
domain_id
,
domain_id
,
layout
,
domain
;
domain
;
for
(
domain_id
in
domain_dict
)
{
for
(
domain_id
in
domain_dict
)
{
if
(
domain_dict
.
hasOwnProperty
(
domain_id
))
{
if
(
domain_dict
.
hasOwnProperty
(
domain_id
))
{
...
@@ -1252,7 +1249,6 @@
...
@@ -1252,7 +1249,6 @@
});
});
});
});
}
}
return
result_queue
;
return
result_queue
;
})
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
08a8a75f
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
994.1
3949.44825.36573
</string>
</value>
<value>
<string>
994.1
9974.6495.18244
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1629
394496.1
</float>
<float>
1629
755936.08
</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