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
amrani
erp5
Commits
4ab3d134
Commit
4ab3d134
authored
Feb 21, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_monitoring] minors fix
parent
7f618b56
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
11 deletions
+16
-11
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_opml_view_js.js
...eItem/web_page_module/gadget_officejs_jio_opml_view_js.js
+8
-5
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_opml_view_js.xml
...Item/web_page_module/gadget_officejs_jio_opml_view_js.xml
+2
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_opml_edit_js.js
...eb_page_module/gadget_officejs_monitoring_opml_edit_js.js
+4
-2
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_opml_edit_js.xml
...b_page_module/gadget_officejs_monitoring_opml_edit_js.xml
+2
-2
No files found.
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_opml_view_js.js
View file @
4ab3d134
...
@@ -45,11 +45,13 @@
...
@@ -45,11 +45,13 @@
if
(
state
)
{
if
(
state
)
{
return
gadget
.
notifySubmitting
()
return
gadget
.
notifySubmitting
()
.
push
(
function
()
{
.
push
(
function
()
{
var
verify_opml
=
doc
.
title
===
""
||
doc
.
title
===
undefined
||
doc
.
verify_password
===
1
;
if
(
gadget
.
state
.
active
===
false
&&
doc
.
active
===
1
)
{
verify_opml
=
true
;
}
doc
.
title
=
gadget
.
state
.
opml_title
;
doc
.
title
=
gadget
.
state
.
opml_title
;
return
opml_gadget
.
saveOPML
(
return
opml_gadget
.
saveOPML
(
doc
,
verify_opml
);
doc
,
doc
.
title
===
""
||
doc
.
title
===
undefined
||
doc
.
verify_password
===
1
);
})
})
.
push
(
function
(
status
)
{
.
push
(
function
(
status
)
{
var
msg
=
{
message
:
'
Document Updated
'
,
status
:
'
success
'
};
var
msg
=
{
message
:
'
Document Updated
'
,
status
:
'
success
'
};
...
@@ -84,7 +86,8 @@
...
@@ -84,7 +86,8 @@
return
gadget
.
changeState
({
return
gadget
.
changeState
({
"
opml_title
"
:
doc
.
title
||
""
,
"
opml_title
"
:
doc
.
title
||
""
,
"
opml_key
"
:
options
.
jio_key
,
"
opml_key
"
:
options
.
jio_key
,
"
password
"
:
doc
.
password
"
password
"
:
doc
.
password
,
"
active
"
:
doc
.
active
});
});
})
})
.
push
(
function
()
{
.
push
(
function
()
{
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_jio_opml_view_js.xml
View file @
4ab3d134
...
@@ -250,7 +250,7 @@
...
@@ -250,7 +250,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
965.4
1380.57960.56268
</string>
</value>
<value>
<string>
965.4
2338.34743.44339
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1519
168458.29
</float>
<float>
1519
225208.75
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_opml_edit_js.js
View file @
4ab3d134
...
@@ -147,7 +147,8 @@
...
@@ -147,7 +147,8 @@
username
:
doc
.
username
,
username
:
doc
.
username
,
password
:
doc
.
password
,
password
:
doc
.
password
,
active
:
(
doc
.
active
===
1
)
?
true
:
false
,
active
:
(
doc
.
active
===
1
)
?
true
:
false
,
has_monitor
:
true
has_monitor
:
true
,
state
:
doc
.
state
||
(
doc
.
active
?
"
Started
"
:
"
Stopped
"
)
},
},
update_password_list
=
[];
update_password_list
=
[];
gadget
.
state
.
message
.
textContent
=
""
;
gadget
.
state
.
message
.
textContent
=
""
;
...
@@ -299,7 +300,6 @@
...
@@ -299,7 +300,6 @@
opml_dict
.
basic_login
=
opml_dict
.
basic_login
=
btoa
(
doc
.
username
+
'
:
'
+
doc
.
new_password
);
btoa
(
doc
.
username
+
'
:
'
+
doc
.
new_password
);
opml_dict
.
password
=
doc
.
new_password
;
opml_dict
.
password
=
doc
.
new_password
;
opml_dict
.
state
=
"
Started
"
;
return
true
;
return
true
;
});
});
});
});
...
@@ -308,6 +308,8 @@
...
@@ -308,6 +308,8 @@
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
if
(
verify_password
)
{
if
(
verify_password
)
{
// if verification pass -> instance is started
opml_dict
.
state
=
"
Started
"
;
return
validateOPML
();
return
validateOPML
();
}
}
return
true
;
return
true
;
...
...
bt5/erp5_web_monitoring/PathTemplateItem/web_page_module/gadget_officejs_monitoring_opml_edit_js.xml
View file @
4ab3d134
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
965.4
1362.25057.37034
</string>
</value>
<value>
<string>
965.4
2325.2049.64307
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -260,7 +260,7 @@
...
@@ -260,7 +260,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1519
166629.53
</float>
<float>
1519
224835.75
</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