[IMP]render action_manager and apply css.

bzr revid: vme@tinyerp.com-20120522103019-9urivr1jx31vkhqj
This commit is contained in:
Vidhin Mehta (OpenERP)
2012-05-22 16:00:19 +05:30
parent ca6283de8e
commit 598d9b30cb
4 changed files with 1759 additions and 2065 deletions
+2 -1
View File
@@ -52,10 +52,11 @@ instance.web.ViewEditor = instance.web.OldWidget.extend({
this.view_edit_dialog.on_close.add_last(function(){window.location.reload();});
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);
$.when(this.action_manager.do_action(action)).then(function() {
var viewmanager = self.action_manager.inner_viewmanager,
controller = viewmanager.views[viewmanager.active_view].controller;
self.action_manager.appendTo(self.view_edit_dialog.$element);
self.action_manager.renderElement(self.view_edit_dialog);
controller.on_loaded.add_last(function(){
$(controller.groups).bind({
'selected': function(e, ids, records) {