diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-11-23 23:56:54 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-11-23 23:56:54 +0100 |
| commit | 244a54fcbc50db1d29849fd732aaa79df7eecfbd (patch) | |
| tree | c3dc3f21b6e4f4c6052d1c6d9487bbf7de97ceaa /addons/web_dashboard/static/src/js | |
| parent | ce31ddc49f83bcaaaddbdc5c99ded4c2c3caf696 (diff) | |
[ADD] Add confirmation on dashboard item deletion
bzr revid: fme@openerp.com-20111123225654-5x6igeau2xp3rbc2
Diffstat (limited to 'addons/web_dashboard/static/src/js')
| -rw-r--r-- | addons/web_dashboard/static/src/js/dashboard.js | 6 |
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; |
