[IMP] improved UI for empty kanban(group_by)
bzr revid: pga@tinyerp.com-20140221131728-i2ra7rrkgl9hu69n
This commit is contained in:
parent
49f26ffbc8
commit
e6335d2b40
|
@ -9,8 +9,13 @@
|
|||
.openerp .oe_kanban_view .oe_view_nocontent {
|
||||
position: relative;
|
||||
max-width: none;
|
||||
z-index: 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.openerp .oe_kanban_view.oe_kanban_grouped{
|
||||
position: relative;
|
||||
}
|
||||
.openerp .oe_kanban_view .oe_view_nocontent .oe_view_nocontent_content {
|
||||
margin-left: 90px;
|
||||
margin-top: 5px;
|
||||
|
@ -160,7 +165,7 @@
|
|||
padding: 0px;
|
||||
background: white;
|
||||
}
|
||||
.openerp .oe_kanban_view .oe_kanban_column, .openerp .oe_kanban_view .oe_kanban_column_cards {
|
||||
.openerp .oe_kanban_view .oe_kanban_column {
|
||||
height: 100%;
|
||||
}
|
||||
.openerp .oe_kanban_view .oe_kanban_aggregates {
|
||||
|
|
|
@ -43,7 +43,6 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
|
|||
this.currently_dragging = {};
|
||||
this.limit = options.limit || 40;
|
||||
this.add_group_mutex = new $.Mutex();
|
||||
this.last_position = 'static';
|
||||
},
|
||||
view_loading: function(r) {
|
||||
return this.load_kanban(r);
|
||||
|
@ -496,16 +495,13 @@ instance.web_kanban.KanbanView = instance.web.View.extend({
|
|||
|| (!this.options.action.help && !this.options.action.get_empty_list_help)) {
|
||||
return;
|
||||
}
|
||||
this.last_position = this.$el.find('table:first').css("position");
|
||||
this.$el.find('table:first').css("position", "absolute");
|
||||
$(QWeb.render('KanbanView.nocontent', { content : this.options.action.get_empty_list_help || this.options.action.help})).insertAfter(this.$('table:first'));
|
||||
$(QWeb.render('KanbanView.nocontent', { content : this.options.action.get_empty_list_help || this.options.action.help})).insertBefore(this.$('table:first'));
|
||||
this.$el.find('.oe_view_nocontent').click(function() {
|
||||
self.$buttons.openerpBounce();
|
||||
});
|
||||
},
|
||||
remove_no_result: function() {
|
||||
this.$el.find('table:first').css("position", this.last_position);
|
||||
this.$el.find('.oe_view_nocontent').remove();
|
||||
this.$el.find('.oe_view_nocontent').remove();
|
||||
},
|
||||
|
||||
/*
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
</t>
|
||||
</div>
|
||||
<t t-name="KanbanView.nocontent">
|
||||
<div class="oe_view_nocontent">
|
||||
<div class="oe_view_nocontent" style="position:absolute;">
|
||||
<div class="oe_view_nocontent_bg"></div>
|
||||
<div class="oe_view_nocontent_content">
|
||||
<t t-raw="content"/>
|
||||
|
|
Loading…
Reference in New Issue