Commit c763930b authored by Lu Xu's avatar Lu Xu 👀

revert useless modification SA

parent 90f33023
......@@ -21,7 +21,6 @@
.declareAcquiredMethod("getUrlParameter", "getUrlParameter")
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
//added
.allowPublicAcquisition("jio_allDocs", function (param_list) {
var gadget = this;
return gadget.jio_allDocs(param_list[0])
......@@ -57,20 +56,6 @@
return result;
});
})
// good for now
/*
.allowPublicAcquisition('notifySubmit', function () {
return this.triggerSubmit();
})
.declareMethod("triggerSubmit", function () {
var argument_list = arguments;
return this.getDeclaredGadget('form_list')
.push(function (gadget) {
return gadget.triggerSubmit.apply(gadget, argument_list);
});
})
*/
.allowPublicAcquisition('updateHeader', function () {
return;
......@@ -150,7 +135,6 @@
});
})
.declareMethod("render", function () {
var gadget = this;
this.getDeclaredGadget('form_list');
......@@ -197,8 +181,6 @@
type: "complex"
}));
return RSVP.all([
result[0].render({
erp5_document: {"_embedded": {"_view": {
......@@ -318,7 +300,6 @@
})
]);
})
.push(function () {
return RSVP.all([
gadget.getSetting('document_title_plural'),
......@@ -338,4 +319,4 @@
});
}(window, rJS, jIO, RSVP, SimpleQuery, ComplexQuery, Query));
\ No newline at end of file
}(window, rJS, jIO, RSVP, SimpleQuery, ComplexQuery, Query));
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