diff options
| author | Vidhin Mehta (OpenERP) <vme@tinyerp.com> | 2012-11-01 12:02:20 +0530 |
|---|---|---|
| committer | Vidhin Mehta (OpenERP) <vme@tinyerp.com> | 2012-11-01 12:02:20 +0530 |
| commit | 8152ff96099f4ef8d641f4460fdd93bfa1641261 (patch) | |
| tree | db697ef98163b770e9f846739d90b8ab57a338f0 /addons/web_view_editor/static/src/js | |
| parent | 1f4be500797bc9dee6744e5d415c6cd90a2740f7 (diff) | |
[IMP]Css cleanup and refactore code.
bzr revid: vme@tinyerp.com-20121101063220-jlppjre8vefpeezv
Diffstat (limited to 'addons/web_view_editor/static/src/js')
| -rw-r--r-- | addons/web_view_editor/static/src/js/view_editor.js | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/addons/web_view_editor/static/src/js/view_editor.js b/addons/web_view_editor/static/src/js/view_editor.js index dadf34b1247..e0a0df5ab53 100644 --- a/addons/web_view_editor/static/src/js/view_editor.js +++ b/addons/web_view_editor/static/src/js/view_editor.js @@ -18,11 +18,10 @@ instance.web.ViewManagerAction.include({ return this._super.apply(this,arguments); } } -}) +}); instance.web_view_editor.ViewEditor = instance.web.Widget.extend({ init: function(parent, element_id, dataset, view, options) { this._super(parent); - this.element_id = element_id; this.parent = parent; this.dataset = new instance.web.DataSetSearch(this, 'ir.ui.view', null, null), this.model = dataset.model; @@ -71,18 +70,7 @@ instance.web_view_editor.ViewEditor = instance.web.Widget.extend({ this.main_view_id = this.parent.fields_view.view_id; this.action_manager = new instance.web.ActionManager(this); this.action_manager.appendTo(this.view_edit_dialog.$el); - $.when(this.action_manager.do_action(action)).then(function() { - - var viewmanager = self.action_manager.inner_widget; - var controller = viewmanager.views[viewmanager.active_view].controller; - controller.on('view_loaded', function(){ - $(controller.groups).bind({ - 'selected': function(e, ids, records) { - self.main_view_id = ids[0]; - } - }) - }); - }); + this.action_manager.do_action(action); }, on_create_view: function() { var self = this; |
