Commit 60151ad2 authored by Roque's avatar Roque

erp5_web_monitoring: minor fixes

- setting configurator header link
- allow auto_sync when adding opml
- update form title
- fix landing page
parent 7f85012c
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>ERP5 Page Monitoring Dispatch</title>
<!-- renderjs -->
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="gadget_erp5_page_ojsm_landing.js" type="text/javascript"></script>
</head>
<body>
</body>
</html>
\ No newline at end of file
/*global window, rJS, RSVP */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP) {
"use strict";
rJS(window)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("redirect", "redirect")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod("render", function (options) {
var gadget = this;
return new RSVP.Queue()
.push(function () {
options.page = 'ojsm_dispatch';
return gadget.redirect({command: 'display', options: options });
});
});
}(window, rJS, RSVP));
\ No newline at end of file
......@@ -98,7 +98,7 @@
})
.declareMethod("render", function (options) {
var gadget = this;
var gadget = this, auto_sync = !options.intra;
return RSVP.Queue()
.push(function () {
var button_no_pwd = gadget.element.getElementsByClassName("btn-nopasswd");
......@@ -230,6 +230,14 @@
save_action: true,
change_password: chg_pwd_url
});
})
.push(function () {
return gadget.checkSynchronize(auto_sync);
});
})
.declareJob("checkSynchronize", function (auto_sync) {
if (auto_sync) {
return this.element.querySelector('button[type="submit"]').click();
}
});
}(window, rJS, RSVP));
......@@ -260,7 +260,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1015.15648.56156.28518</string> </value>
<value> <string>1016.46878.65388.21691</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -280,7 +280,7 @@
</tuple>
<state>
<tuple>
<float>1710516573.13</float>
<float>1716236126.38</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -353,7 +353,7 @@
})
.push(function () {
return RSVP.all([
gadget.getUrlFor({command: "change", options: {"page": "ojsm_opml_add"}}),
gadget.getUrlFor({command: "change", options: {"page": "ojsm_opml_add", "intra": true}}),
gadget.getSetting('document_title')
]);
})
......
......@@ -246,7 +246,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1016.681.49439.24951</string> </value>
<value> <string>1016.27838.64215.37273</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>1713893527.2</float>
<float>1716236037.63</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -146,7 +146,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Promise</string> </value>
<value> <string>OPML</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment