[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('');
|
var row = cells.join('');
|
||||||
this.$current
|
this.$current
|
||||||
.children('tr:not([data-id])').remove().end()
|
.children('tr:not([data-id])').remove().end()
|
||||||
.append(new Array(count - this.records.length + 1).join(row)).click(
|
.append(new Array(count - this.records.length + 1).join(row));
|
||||||
function() {
|
|
||||||
$('button.oe_list_add').effect('bounce', {distance: 18, times: 5}, 150);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Gets the ids of all currently selected records, if any
|
* Gets the ids of all currently selected records, if any
|
||||||
|
|
|
@ -650,11 +650,9 @@
|
||||||
</table>
|
</table>
|
||||||
<div t-name="ListView.buttons" class="oe_list_buttons">
|
<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')">
|
<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">
|
||||||
<button type="button" class="oe_button oe_list_add oe_highlight">
|
<t t-esc="widget.options.addable"/>
|
||||||
<t t-esc="widget.options.addable"/>
|
</button>
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</t>
|
</t>
|
||||||
</div>
|
</div>
|
||||||
<t t-name="ListView.pager">
|
<t t-name="ListView.pager">
|
||||||
|
@ -695,7 +693,7 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<t t-extend="ListView.buttons">
|
<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"
|
<button class="oe_button oe_list_save oe_highlight"
|
||||||
type="button">Save</button>
|
type="button">Save</button>
|
||||||
<span class="oe_alternative">
|
<span class="oe_alternative">
|
||||||
|
|
Loading…
Reference in New Issue