Browse Source
Merge pull request #1010 from devang-dreambits/10.0-fix-issue-727
10.0-fix-issue-727
pull/1029/head
Pedro M. Baeza
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
1 deletions
-
web_confirm_window_close/README.rst
-
web_confirm_window_close/__manifest__.py
-
web_confirm_window_close/static/src/js/web_confirm_window_close.js
|
|
@ -42,6 +42,7 @@ Images |
|
|
|
Contributors |
|
|
|
------------ |
|
|
|
|
|
|
|
* Devang Pipaliya <devang@dreambits.in> |
|
|
|
* Stefan Rijnhart <stefan@opener.amsterdam> |
|
|
|
|
|
|
|
Maintainer |
|
|
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
{ |
|
|
|
'name': 'Check for unsaved data when closing browser window', |
|
|
|
'version': '10.0.1.0.0', |
|
|
|
'author': "Therp BV,Odoo Community Association (OCA)", |
|
|
|
'author': "Devang Pipaliya - Dreambits,Therp BV,Odoo Community Association (OCA)", |
|
|
|
'category': 'Usability', |
|
|
|
'website': 'https://github.com/oca/web', |
|
|
|
'license': 'AGPL-3', |
|
|
|
|
|
@ -10,6 +10,7 @@ odoo.define('web_confirm_window_close', function (require) { |
|
|
|
if ($('html').find('.oe_form_dirty').length) { |
|
|
|
e.preventDefault(); |
|
|
|
} |
|
|
|
return ""; |
|
|
|
}, |
|
|
|
|
|
|
|
start: function() { |
|
|
|