[FIX] pad: regression that caused a stack trace

bzr revid: nicolas.vanhoren@openerp.com-20130424074638-aq3o08v7z9j1asz0
This commit is contained in:
niv-openerp 2013-04-24 09:46:38 +02:00
parent 26e488f2fb
commit e6902869ed
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ openerp.pad = function(instance) {
this.on("change:configured", this, this.switch_configured);
},
initialize_content: function() {
var self = this;
this.switch_configured();
this.$('.oe_pad_switch').click(function() {
self.$el.toggleClass('oe_pad_fullscreen');