projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e10bb64
)
[IMP] Restore form dirty confirmation on pager change
author
Fabien Meghazi
<fme@openerp.com>
Wed, 15 Feb 2012 10:56:28 +0000
(11:56 +0100)
committer
Fabien Meghazi
<fme@openerp.com>
Wed, 15 Feb 2012 10:56:28 +0000
(11:56 +0100)
bzr revid: fme@openerp.com-
20120215105628
-i91krjqgbx28n1h2
addons/web/static/src/js/view_form.js
patch
|
blob
|
history
diff --git
a/addons/web/static/src/js/view_form.js
b/addons/web/static/src/js/view_form.js
index
9bd566b
..
366dfad
100644
(file)
--- a/
addons/web/static/src/js/view_form.js
+++ b/
addons/web/static/src/js/view_form.js
@@
-469,8
+469,7
@@
openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView#
return def.promise();
},
can_be_discarded: function() {
- return true; // FIXME: Disabled until the page view and button refactoring is done
- return !this.is_dirty() || confirm(_t("Warning, the record has been modified, your changes will be discarded."));
+ return !this.$element.is('.oe_form_dirty') || confirm(_t("Warning, the record has been modified, your changes will be discarded."));
},
/**
* Triggers saving the form's record. Chooses between creating a new