[FIX]get all span text of header.

bzr revid: vme@tinyerp.com-20120822134249-e398qom83ur322ub
This commit is contained in:
Vidhin Mehta (OpenERP) 2012-08-22 19:12:49 +05:30
parent a69baa4d9c
commit 5d0b45b958
2 changed files with 2 additions and 2 deletions

View File

@ -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());
});

View File

@ -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">&amp;nbsp;</t>
<button t-if="action.attrs.creatable and action.attrs.creatable !== 'false'" class="oe_button oe_button_create">Create</button>