summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorniv-openerp <nicolas.vanhoren@openerp.com>2012-05-10 17:22:53 +0200
committerniv-openerp <nicolas.vanhoren@openerp.com>2012-05-10 17:22:53 +0200
commitb1e48d1b6a20909dd816ef13d5e524bdb6d78b66 (patch)
tree565fb2c786b6382b57590ad0b17fdd9883821ea2 /addons/web/static/src
parent975bb56fb6bb06f0b0f26d56ff31011d7a2ce895 (diff)
removed buttons invisible but keep other changes
bzr revid: nicolas.vanhoren@openerp.com-20120510152253-f2er58k6b0kb5kvg
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/view_form.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index 9b85c597962..5f76a08821b 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -13,8 +13,6 @@ instance.web.form = {};
* Properties:
* - display_invalid_fields : if true, all fields where is_valid() return true should
* be displayed as invalid.
- * - buttons_invisible: boolean. If true, all buttons should be switched to invisible (TODO: clean
- * this later, should be replaced with a better "mode" property)
* Events:
* - view_content_has_changed : when the values of the fields have changed. When
* this event is triggered all fields should reprocess their modifiers.
@@ -82,10 +80,6 @@ instance.web.FormView = instance.web.View.extend(_.extend({}, instance.web.form.
this.reload_mutex = new $.Mutex();
this.rendering_engine = new instance.web.form.FormRenderingEngineReadonly(this);
this.qweb = null; // A QWeb instance will be created if the view is a QWeb template
- var _check_buttons = function() {
- this.set({"buttons_invisible": this.get("mode") !== "view"});
- };
- this.on("change:mode", this, _check_buttons);
},
destroy: function() {
_.each(this.get_widgets(), function(w) {
@@ -1529,11 +1523,6 @@ instance.web.form.WidgetButton = instance.web.form.FormWidget.extend({
this.view.default_focus_button = this;
}
this.view.on('view_content_has_changed', this, this.check_disable);
- var _check_invisible = function() {
- this.set({"force_invisible": this.view.get("buttons_invisible")});
- };
- this.view.on("change:buttons_invisible", this, _check_invisible);
- _.bind(_check_invisible, this)();
},
start: function() {
this._super.apply(this, arguments);