[IMP] On kanban view, if click inside a column, bounce the related quick create[+]
bzr revid: psa@tinyerp.com-20120704061930-jyw2kohww5a7enbf
This commit is contained in:
parent
e155f29f18
commit
d5572fdc8a
|
@ -728,11 +728,11 @@ instance.web.Widget = instance.web.Class.extend(instance.web.WidgetMixin, {
|
|||
}
|
||||
return false;
|
||||
},
|
||||
/*
|
||||
* In button to bounce effect
|
||||
/**
|
||||
* Add bounce effect when click on wrong area
|
||||
*/
|
||||
do_bounce: function(element) {
|
||||
element.effect("bounce", { times:3}, 500);
|
||||
element.effect("bounce", { times:3}, 300);
|
||||
},
|
||||
do_notify: function() {
|
||||
if (this.getParent()) {
|
||||
|
|
|
@ -453,8 +453,10 @@
|
|||
.openerp .oe_kanban_view .oe_kanban_color_9 {
|
||||
background-color: #ffc7f1;
|
||||
}
|
||||
|
||||
.openerp .oe_form .oe_kanban_view .oe_kanban_column, .openerp .oe_form .oe_kanban_view .oe_kanban_group_header {
|
||||
padding: 0px;
|
||||
background: white;
|
||||
}
|
||||
.openerp .oe_kanban_quick_create {
|
||||
float: right;
|
||||
}
|
|
@ -416,9 +416,9 @@ instance.web_kanban.KanbanGroup = instance.web.OldWidget.extend({
|
|||
self.quick.focus();
|
||||
});
|
||||
var click_column = this.$element.find('.oe_kanban_add');
|
||||
click_column.css({"float":"right"});
|
||||
click_column.addClass('oe_kanban_quick_create');
|
||||
this.$records.click(function() {
|
||||
click_column.effect("bounce", { times:3 }, 300);
|
||||
self.view.do_bounce(click_column);
|
||||
});
|
||||
this.$records.find('.oe_kanban_show_more').click(this.do_show_more);
|
||||
if (this.state.folded) {
|
||||
|
|
Loading…
Reference in New Issue