[IMP]Css cleanup and refactore code.
bzr revid: vme@tinyerp.com-20121101063220-jlppjre8vefpeezv
This commit is contained in:
parent
1f4be50079
commit
8152ff9609
|
@ -1,25 +1,15 @@
|
||||||
.openerp .oe_view_editor {
|
.openerp .oe_view_editor {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
|
||||||
margin-left: -12px;
|
margin-left: -12px;
|
||||||
width: 100%;
|
|
||||||
background-color: white;
|
|
||||||
border-spacing: 0;
|
|
||||||
}
|
}
|
||||||
.openerp .oe_view_editor td {
|
.openerp .oe_view_editor td {
|
||||||
text-align: center;
|
|
||||||
white-space: nowrap;
|
|
||||||
border: 1px solid #d8d8d8;
|
border: 1px solid #d8d8d8;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 90%;
|
|
||||||
}
|
}
|
||||||
.openerp .oe_view_editor_field td {
|
.openerp .oe_view_editor td *{
|
||||||
border: 0px !important;
|
border: 0px !important;
|
||||||
|
color : #404040;
|
||||||
}
|
}
|
||||||
.openerp .oe_view_editor tr:hover {
|
.openerp .oe_view_editor tr:hover {
|
||||||
background-color: #ecebf2;
|
background-color: #ecebf2;
|
||||||
}
|
}
|
||||||
.openerp .oe_view_editor_field a{
|
|
||||||
font-size : 12px;
|
|
||||||
color : #404040;
|
|
||||||
}
|
|
|
@ -18,11 +18,10 @@ instance.web.ViewManagerAction.include({
|
||||||
return this._super.apply(this,arguments);
|
return this._super.apply(this,arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
instance.web_view_editor.ViewEditor = instance.web.Widget.extend({
|
instance.web_view_editor.ViewEditor = instance.web.Widget.extend({
|
||||||
init: function(parent, element_id, dataset, view, options) {
|
init: function(parent, element_id, dataset, view, options) {
|
||||||
this._super(parent);
|
this._super(parent);
|
||||||
this.element_id = element_id;
|
|
||||||
this.parent = parent;
|
this.parent = parent;
|
||||||
this.dataset = new instance.web.DataSetSearch(this, 'ir.ui.view', null, null),
|
this.dataset = new instance.web.DataSetSearch(this, 'ir.ui.view', null, null),
|
||||||
this.model = dataset.model;
|
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.main_view_id = this.parent.fields_view.view_id;
|
||||||
this.action_manager = new instance.web.ActionManager(this);
|
this.action_manager = new instance.web.ActionManager(this);
|
||||||
this.action_manager.appendTo(this.view_edit_dialog.$el);
|
this.action_manager.appendTo(this.view_edit_dialog.$el);
|
||||||
$.when(this.action_manager.do_action(action)).then(function() {
|
this.action_manager.do_action(action);
|
||||||
|
|
||||||
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];
|
|
||||||
}
|
|
||||||
})
|
|
||||||
});
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
on_create_view: function() {
|
on_create_view: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
Loading…
Reference in New Issue