[FIX] Fixed bug in dashboard rename feature

bzr revid: fme@openerp.com-20110607112701-rt4ywx42dpv21qhd
This commit is contained in:
Fabien Meghazi
2011-06-07 13:27:01 +02:00
parent 4ea28efe95
commit 82d062fbff
@@ -117,7 +117,7 @@ openerp.base.form.DashBoard = openerp.base.form.Widget.extend({
},
on_rename : function(e) {
var self = this,
id = $(e.currentTarget).parents('.oe-dashboard-action:first').attr('data-id'),
id = parseInt($(e.currentTarget).parents('.oe-dashboard-action:first').attr('data-id'), 10),
$header = $(e.currentTarget).parents('.oe-dashboard-action-header:first'),
$rename = $header.find('a.oe-dashboard-action-rename').hide(),
$title = $header.find('span.oe-dashboard-action-title').hide(),