summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-11-03 11:55:18 +0100
committerFabien Meghazi <fme@openerp.com>2011-11-03 11:55:18 +0100
commit794764a58df3f79a76c62b8a4e703b9d2544ebdf (patch)
tree9aa58b40946181355eda24e9e7f8c0cba6eb431b
parent584edbaa816ba968692f65bab630ef1c49842c08 (diff)
[IMP] Confirm delete
bzr revid: fme@openerp.com-20111103105518-siu6qoo1qho0qddz
-rw-r--r--addons/web_kanban/static/src/js/kanban.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js
index bfc1f1b8e95..cbc047e025e 100644
--- a/addons/web_kanban/static/src/js/kanban.js
+++ b/addons/web_kanban/static/src/js/kanban.js
@@ -286,10 +286,12 @@ openerp.web_kanban.KanbanRecord = openerp.web.Widget.extend({
},
do_action_delete: function($action) {
var self = this;
- return $.when(this.view.dataset.unlink([this.id])).then(function() {
- self.group.remove_record(self.id)
- self.stop();
- });
+ if (confirm(_t("Qre you sure you want to delete this record ?"))) {
+ return $.when(this.view.dataset.unlink([this.id])).then(function() {
+ self.group.remove_record(self.id)
+ self.stop();
+ });
+ }
},
do_action_edit: function($action) {
var self = this;