[IMP] bounce effect on empty list rows
bzr revid: fp@openerp.com-20120916204029-m4va0yfwnuqanwm6
This commit is contained in:
@@ -1049,7 +1049,11 @@ instance.web.ListView.List = instance.web.Class.extend( /** @lends instance.web.
|
||||
var row = cells.join('');
|
||||
this.$current
|
||||
.children('tr:not([data-id])').remove().end()
|
||||
.append(new Array(count - this.records.length + 1).join(row));
|
||||
.append(new Array(count - this.records.length + 1).join(row)).click(
|
||||
function() {
|
||||
$('button.oe_list_add').effect('bounce', {distance: 18, times: 5}, 150);
|
||||
}
|
||||
);
|
||||
},
|
||||
/**
|
||||
* Gets the ids of all currently selected records, if any
|
||||
|
||||
@@ -650,9 +650,11 @@
|
||||
</table>
|
||||
<div t-name="ListView.buttons" class="oe_list_buttons">
|
||||
<t t-if="!widget.no_leaf and widget.options.action_buttons !== false and widget.options.addable and widget.is_action_enabled('create')">
|
||||
<button type="button" class="oe_button oe_list_add oe_highlight">
|
||||
<t t-esc="widget.options.addable"/>
|
||||
</button>
|
||||
<div name="oe_list_add_div">
|
||||
<button type="button" class="oe_button oe_list_add oe_highlight">
|
||||
<t t-esc="widget.options.addable"/>
|
||||
</button>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
<t t-name="ListView.pager">
|
||||
@@ -693,7 +695,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<t t-extend="ListView.buttons">
|
||||
<t t-jquery="button.oe_list_add" t-operation="after">
|
||||
<t t-jquery="div.oe_list_add_div" t-operation="after">
|
||||
<button class="oe_button oe_list_save oe_highlight"
|
||||
type="button">Save</button>
|
||||
<span class="oe_alternative">
|
||||
|
||||
Reference in New Issue
Block a user