Commit 6711cc79 authored by Sebastien Robin's avatar Sebastien Robin

MONITORING erp5_web_renderjs_ui: add needed support for latest ERP5 changes

parent fd18441c
......@@ -15,6 +15,7 @@
var MAIN_SCOPE = "m";
function renderMainGadget(gadget, url, options) {
return gadget.declareGadget(url, {
scope: MAIN_SCOPE
......@@ -61,6 +62,7 @@
});
}
function increaseLoadingCounter(gadget) {
return new RSVP.Queue()
.push(function () {
......@@ -200,7 +202,6 @@
return jio_gadget.put('setting', doc);
});
}
//////////////////////////////////////////
// Page rendering
//////////////////////////////////////////
......@@ -377,6 +378,12 @@
param_list);
});
})
.allowPublicAcquisition("getUrlForList", function getUrlForList(
param_list
) {
return route(this, 'router', 'getCommandUrlForList', param_list);
})
.allowPublicAcquisition("updateHeader", function (param_list) {
var gadget = this;
......@@ -423,6 +430,10 @@
}
});
})
.allowPublicAcquisition("updatePanel", function updatePanel(param_list) {
return;
})
.allowPublicAcquisition('triggerPanel', function () {
return route(this, "panel", "toggle");
......@@ -472,6 +483,7 @@
.allowPublicAcquisition("renderApplication", function (param_list) {
return this.renderXXX.apply(this, param_list);
})
// Render the page
.declareMethod('renderXXX', function (options) {
var gadget = this;
......
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