Commit 21b01df8 authored by Hamza Chahed's avatar Hamza Chahed

add a delete button to the officejs notebook

parent fd63bee8
......@@ -242,6 +242,10 @@
gadget.getUrlFor({
command: 'change',
options: {'page': "ojs_download"}
}),
gadget.getUrlFor({
command: 'change',
options: {'page': "ojs_remove"}
})
]);
})
......@@ -252,7 +256,8 @@
selection_url: url_list[0],
previous_url: url_list[1],
next_url: url_list[2],
export_url: url_list[3]
export_url: url_list[3],
delete_url: url_list[4]
});
});
});
......
......@@ -244,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>978.12700.38234.29030</string> </value>
<value> <string>978.24024.22726.51012</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1567529245.53</float>
<float>1568207678.22</float>
<string>UTC</string>
</tuple>
</state>
......
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gadget OfficeJS Upload</title>
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script src="gadget_erp5_page_ojs_remove.js"></script>
</head>
<body>
</body>
</html>
\ No newline at end of file
/*global window, rJS, Blob */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, Blob) {
"use strict";
rJS(window)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("jio_remove", "jio_remove")
.declareAcquiredMethod("redirect", "redirect")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.declareMethod("render", function (options) {
var gadget = this;
return gadget.jio_remove(options.jio_key)
.push(function () {
return gadget.redirect({
'command': 'display',
'options': {
'page': 'ojs_notebook_list'
}
});
});
});
}(window, rJS, Blob));
\ No newline at end of file
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