[IMP] kanban tooltip on quickcreate

bzr revid: vta@openerp.com-20120904135045-husx3of9jnjhzpqp
This commit is contained in:
vta vta@openerp.com 2012-09-04 15:50:45 +02:00
parent 9ec0ce8868
commit c0fbdc2556
2 changed files with 4 additions and 3 deletions

View File

@ -517,7 +517,6 @@ instance.web_kanban.KanbanGroup = instance.web.Widget.extend({
self.quick.focus();
});
// Add bounce effect on image '+' of kanban header when click on empty space of kanban grouped column.
var add_btn = this.$el.find('.oe_kanban_add');
this.$records.find('.oe_kanban_show_more').click(this.do_show_more);
if (this.state.folded) {
this.do_toggle_fold();
@ -526,10 +525,12 @@ instance.web_kanban.KanbanGroup = instance.web.Widget.extend({
this.$records.data('widget', this);
this.$has_been_started.resolve();
this.compute_cards_auto_height();
var add_btn = this.$el.find('.oe_kanban_add');
add_btn.tipsy({delayIn: 500, delayOut: 1000});
this.$records.click(function (ev) {
if (ev.target == ev.currentTarget) {
if (!self.state.folded) {
add_btn.effect('bounce', {distance: 18, times: 5}, 150);
add_btn.effect('bounce', {distance: 18, times: 5}, 150);
}
}
});

View File

@ -32,7 +32,7 @@
<t t-if="widget.view.group_by">
<div class="oe_kanban_header">
<t t-if="widget.view._is_quick_create_enabled()">
<div class="oe_kanban_add oe_e">]</div>
<div class="oe_kanban_add oe_e" original-title="Quick create">]</div>
</t>
<div class="oe_dropdown_toggle oe_dropdown_kanban">
<span class="oe_e">í</span>