Commit 472af406 authored by Roque's avatar Roque

erp5_web_monitoring: opml view header options

parent 86b567b8
/*global document, window, rJS, RSVP */
/*global document, window, rJS, RSVP, Rusha */
/*jslint nomen: true, indent: 2, maxerr: 10, maxlen: 80 */
(function (document, window, rJS, RSVP) {
(function (document, window, rJS, RSVP, Rusha) {
"use strict";
var rusha = new Rusha();
rJS(window)
/////////////////////////////////////////////////////////////////
// Acquired methods
......@@ -76,9 +78,33 @@
case "promise":
header_options.refresh_action = true;
return header_options;
case "opml":
return new RSVP.Queue()
.push(function () {
var hosting_key = rusha.digestFromString(page_options.jio_key);
return RSVP.all([
gadget.getUrlFor({command: 'push_history', options: {
page: "ojsm_jump",
jio_key: hosting_key,
title: page_options.opml_title,
view_title: "Related Instance Tree"
}}),
gadget.getUrlFor({command: 'change', options: {
page: 'ojsm_opml_delete',
jio_key: page_options.jio_key,
return_url: 'settings_configurator'
}})
]);
})
.push(function (url_list) {
header_options.jump_url = url_list[0];
header_options.delete_url = url_list[1];
header_options.save_action = true;
return header_options;
});
default:
return header_options;
}
});
}(document, window, rJS, RSVP));
\ No newline at end of file
}(document, window, rJS, RSVP, Rusha));
\ No newline at end of file
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1016.620.37283.46318</string> </value>
<value> <string>1016.7694.22139.25207</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1713546999.65</float>
<float>1713971424.43</float>
<string>UTC</string>
</tuple>
</state>
......
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