summaryrefslogtreecommitdiff
path: root/addons/web_dashboard/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_dashboard/static/src')
-rw-r--r--addons/web_dashboard/static/src/js/dashboard.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web_dashboard/static/src/js/dashboard.js b/addons/web_dashboard/static/src/js/dashboard.js
index 82fb7e3abe9..57aded37854 100644
--- a/addons/web_dashboard/static/src/js/dashboard.js
+++ b/addons/web_dashboard/static/src/js/dashboard.js
@@ -111,8 +111,10 @@ openerp.web.form.DashBoard = openerp.web.form.Widget.extend({
this.do_save_dashboard();
},
on_close_action: function(e) {
- $(e.currentTarget).parents('.oe-dashboard-action:first').remove();
- this.do_save_dashboard();
+ if (confirm("Are you sure you want to remove this item ?")) {
+ $(e.currentTarget).parents('.oe-dashboard-action:first').remove();
+ this.do_save_dashboard();
+ }
},
do_save_dashboard: function() {
var self = this;