Commit 366f179e authored by Roque's avatar Roque

erp5_notebook: drop jsmd acquisition method

parent f54e52e6
...@@ -534,8 +534,6 @@ ...@@ -534,8 +534,6 @@
rJS(window) rJS(window)
.declareAcquiredMethod("finishJSMDVisualization", "finishJSMDVisualization")
.declareMethod("render", function (options) { .declareMethod("render", function (options) {
return this.changeState(options); return this.changeState(options);
}) })
...@@ -558,9 +556,6 @@ ...@@ -558,9 +556,6 @@
var pre = document.createElement('pre'); var pre = document.createElement('pre');
pre.textContent = error; pre.textContent = error;
document.body.appendChild(pre); document.body.appendChild(pre);
})
.push(function () {
return gadget.finishJSMDVisualization();
}); });
}); });
......
...@@ -9,12 +9,6 @@ ...@@ -9,12 +9,6 @@
gadget.property_dict = {}; gadget.property_dict = {};
}) })
.allowPublicAcquisition('finishJSMDVisualization', function () {
console.log("JSMD Eval Done.");
document.querySelector('[id="js-spinner"]').remove();
return this.property_dict.deferred.resolve();
})
.declareMethod("render", function (options) { .declareMethod("render", function (options) {
return this.changeState(options); return this.changeState(options);
}) })
...@@ -36,6 +30,9 @@ ...@@ -36,6 +30,9 @@
}) })
.push(function () { .push(function () {
gadget.listenResize(); gadget.listenResize();
console.log("JSMD Eval Done.");
document.querySelector('[id="js-spinner"]').remove();
return gadget.property_dict.deferred.resolve();
}); });
}) })
......
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