[UPDATE] make return stamtent blank as no effect of any custom message on beforeunload event

pull/1010/head
devang@dreambits 2018-08-03 19:38:47 +05:30
parent 57cbc7bdc1
commit 1ed2f4a12d
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ odoo.define('web_confirm_window_close', function (require) {
if ($('html').find('.oe_form_dirty').length) { if ($('html').find('.oe_form_dirty').length) {
e.preventDefault(); e.preventDefault();
} }
return 'Your have unsaved data. Are you sure you want to close window?'; return "";
}, },
start: function() { start: function() {