[FIX]get all span text of header.
bzr revid: vme@tinyerp.com-20120822134249-e398qom83ur322ub
This commit is contained in:
parent
a69baa4d9c
commit
5d0b45b958
|
@ -27,7 +27,7 @@ instance.web.form.DashBoard = instance.web.form.FormWidget.extend({
|
|||
// Events
|
||||
this.$element.find('.oe_dashboard_link_reset').click(this.on_reset);
|
||||
this.$element.find('.oe_dashboard_link_change_layout').click(this.on_change_layout);
|
||||
this.$element.find('h2.oe_header span:first').click(function(ev){
|
||||
this.$element.find('h2.oe_header span.oe_header_txt').click(function(ev){
|
||||
if(ev.target === ev.currentTarget)
|
||||
self.on_header_string($(ev.target).parent());
|
||||
});
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<t t-name="DashBoard.action">
|
||||
<div t-att-data-id="action.attrs.name" class="oe_action">
|
||||
<h2 t-attf-class="oe_header #{action.attrs.string ? '' : 'oe_header_empty'}">
|
||||
<span><t t-esc="action.attrs.string"/></span>
|
||||
<span class=".oe_header_txt"> <t t-esc="action.attrs.string"/> </span>
|
||||
<input class = "oe_header_text" type="text"/>
|
||||
<t t-if="!action.attrs.string">&nbsp;</t>
|
||||
<button t-if="action.attrs.creatable and action.attrs.creatable !== 'false'" class="oe_button oe_button_create">Create</button>
|
||||
|
|
Loading…
Reference in New Issue