[REV] broken bounce effect on list view [Create] button
bzr revid: xmo@openerp.com-20120928105840-gnh0wcrpzdl9rrbb
This commit is contained in:
parent
834cbb84b5
commit
d6ba1b61f8
|
@ -1052,11 +1052,7 @@ 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)).click(
|
||||
function() {
|
||||
$('button.oe_list_add').effect('bounce', {distance: 18, times: 5}, 150);
|
||||
}
|
||||
);
|
||||
.append(new Array(count - this.records.length + 1).join(row));
|
||||
},
|
||||
/**
|
||||
* Gets the ids of all currently selected records, if any
|
||||
|
|
|
@ -650,11 +650,9 @@
|
|||
</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')">
|
||||
<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>
|
||||
<button type="button" class="oe_button oe_list_add oe_highlight">
|
||||
<t t-esc="widget.options.addable"/>
|
||||
</button>
|
||||
</t>
|
||||
</div>
|
||||
<t t-name="ListView.pager">
|
||||
|
@ -695,7 +693,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<t t-extend="ListView.buttons">
|
||||
<t t-jquery="div.oe_list_add_div" t-operation="after">
|
||||
<t t-jquery="button.oe_list_add" t-operation="after">
|
||||
<button class="oe_button oe_list_save oe_highlight"
|
||||
type="button">Save</button>
|
||||
<span class="oe_alternative">
|
||||
|
|
Loading…
Reference in New Issue