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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
728f7c57
Commit
728f7c57
authored
7 years ago
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_jabber_client] Prevent loading 1000+ gadgets on page
parent
f9159de2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
34 deletions
+11
-34
bt5/erp5_web_jabber_client/PathTemplateItem/web_page_module/jabber_gadget_page_contact_js.js
...lateItem/web_page_module/jabber_gadget_page_contact_js.js
+9
-32
bt5/erp5_web_jabber_client/PathTemplateItem/web_page_module/jabber_gadget_page_contact_js.xml
...ateItem/web_page_module/jabber_gadget_page_contact_js.xml
+2
-2
No files found.
bt5/erp5_web_jabber_client/PathTemplateItem/web_page_module/jabber_gadget_page_contact_js.js
View file @
728f7c57
...
@@ -31,36 +31,13 @@
...
@@ -31,36 +31,13 @@
var
gadget
=
this
;
var
gadget
=
this
;
return
gadget
.
jio_allDocs
(
param_list
[
0
])
return
gadget
.
jio_allDocs
(
param_list
[
0
])
.
push
(
function
(
result
)
{
.
push
(
function
(
result
)
{
var
i
,
len
=
result
.
data
.
total_rows
;
var
i
,
len
=
result
.
data
.
total_rows
;
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
for
(
i
=
0
;
i
<
len
;
i
+=
1
)
{
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
connected
"
))
{
result
.
data
.
rows
[
i
].
value
.
connected
=
result
.
data
.
rows
[
i
].
value
.
connected
=
{
result
.
data
.
rows
[
i
].
value
.
connected
?
'
✓
'
:
''
;
editable
:
0
,
result
.
data
.
rows
[
i
].
value
.
notification
=
hidden
:
0
,
result
.
data
.
rows
[
i
].
value
.
notification
?
'
✓
'
:
''
;
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
connected
,
key
:
"
field_connected
"
,
required
:
0
,
type
:
"
CheckBoxField
"
};
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{
key
:
"
listbox_uid:list
"
,
value
:
2713
};
}
if
(
result
.
data
.
rows
[
i
].
value
.
hasOwnProperty
(
"
notification
"
))
{
result
.
data
.
rows
[
i
].
value
.
notification
=
{
editable
:
0
,
hidden
:
0
,
"
default
"
:
result
.
data
.
rows
[
i
].
value
.
notification
,
key
:
"
field_notification
"
,
required
:
0
,
type
:
"
CheckBoxField
"
};
result
.
data
.
rows
[
i
].
value
[
"
listbox_uid:list
"
]
=
{
key
:
"
listbox_uid:list
"
,
value
:
2713
};
}
}
}
return
result
;
return
result
;
});
});
...
@@ -98,10 +75,10 @@
...
@@ -98,10 +75,10 @@
"
column_list
"
:
column_list
,
"
column_list
"
:
column_list
,
"
show_anchor
"
:
0
,
"
show_anchor
"
:
0
,
"
default_params
"
:
{},
"
default_params
"
:
{},
"
editable
"
:
1
,
"
editable
"
:
0
,
"
editable_column_list
"
:
column_list
,
"
editable_column_list
"
:
[]
,
"
key
"
:
"
field_listbox
"
,
"
key
"
:
"
field_listbox
"
,
"
lines
"
:
100
0
,
"
lines
"
:
2
0
,
"
list_method
"
:
"
portal_catalog
"
,
"
list_method
"
:
"
portal_catalog
"
,
"
query
"
:
"
urn:jio:allDocs
"
,
"
query
"
:
"
urn:jio:allDocs
"
,
"
portal_type
"
:
[],
"
portal_type
"
:
[],
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_web_jabber_client/PathTemplateItem/web_page_module/jabber_gadget_page_contact_js.xml
View file @
728f7c57
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
963.1
3593.12902.41028
</string>
</value>
<value>
<string>
963.1
9286.54749.51780
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
09722579.38
</float>
<float>
15
10065460.75
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
This diff is collapsed.
Click to expand it.
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