Commit 3f955de2 authored by Sebastien Robin's avatar Sebastien Robin Committed by Eteri

MONITORING erp5_web_renderjs_ui: add needed support for latest ERP5 changes

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