Commit 00ab06d7 authored by Jérome Perrin's avatar Jérome Perrin

officejs_support_request_ui: no need to define `redirect` method

Default method seem to work just fine and is compatible with the recent
improvements in erp5_hal_jon_style (
09d00cae )
parent c026335b
No related merge requests found
......@@ -112,7 +112,7 @@
<item>
<key> <string>text_content</string> </key>
<value> <string>CACHE MANIFEST\n
# v1.0.4\n
# v1.0.5\n
CACHE:\n
font-awesome/font-awesome-webfont.woff2\n
echarts-all.js\n
......
......@@ -10,22 +10,9 @@
.declareAcquiredMethod("jio_allDocs", "jio_allDocs")
.declareAcquiredMethod("getUrlParameter", "getUrlParameter")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("redirect", "redirect")
.declareAcquiredMethod("getSetting", "getSetting")
.declareAcquiredMethod("notifyChange", "notifyChange")
.allowPublicAcquisition("redirect", function (param_list) {
var gadget = this;
return gadget.redirect({command: 'change', options: {
view: gadget.hateoas_url +
"ERP5Document_getHateoas?mode=traverse&relative_url=" +
encodeURIComponent(param_list[0].options.jio_key) +
"&view=officejs_support_request_view",
page: 'list',
jio_key: param_list[0].options.jio_key
}
});
})
.allowPublicAcquisition("notifyChange", function (param_list) {
if (param_list[0]) {
return this.notifyChange("Please provide a description for this support request.");
......
......@@ -256,8 +256,8 @@
</tuple>
<state>
<tuple>
<float>1506672340.09</float>
<string>UTC</string>
<float>1540524000.73</float>
<string>GMT+9</string>
</tuple>
</state>
</object>
......
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