On kanban view, if click inside a column, bounce the related quick create[+]

bzr revid: psa@tinyerp.com-20120702072519-r54mncuq083jesln
This commit is contained in:
Paramjit Singh Sahota 2012-07-02 12:55:19 +05:30
parent 58d7c74c1d
commit 219ad444b7
1 changed files with 11 additions and 0 deletions

View File

@ -415,6 +415,11 @@ instance.web_kanban.KanbanGroup = instance.web.OldWidget.extend({
self.quick.appendTo($(".oe_kanban_group_list_header", self.$records));
self.quick.focus();
});
var click_column = this.$element.find('.oe_kanban_add');
this.$records.click(function() {
click_column.effect("bounce", { times:3 }, 300);
});
this.$records.find('.oe_kanban_show_more').click(this.do_show_more);
if (this.state.folded) {
this.do_toggle_fold();
@ -479,6 +484,12 @@ instance.web_kanban.KanbanGroup = instance.web.OldWidget.extend({
do_toggle_fold: function(compute_width) {
this.$element.add(this.$records).toggleClass('oe_kanban_group_folded');
this.state.folded = this.$element.is('.oe_kanban_group_folded');
if(this.state.folded) {
this.$element.find('.oe_kanban_add').css({"visibility": "hidden"});
}
if(!this.state.folded) {
this.$element.find('.oe_kanban_add').css({"visibility": "visible"});
}
},
do_save_sequences: function() {
var self = this;