[FIX] Prevent ViewManager to remove other spans from the title

bzr revid: fme@openerp.com-20111113120148-bwhdrxmimjq5ar6w
This commit is contained in:
Fabien Meghazi 2011-11-13 13:01:48 +01:00
parent 5b59cff84e
commit 9c1ffaf129
1 changed files with 2 additions and 2 deletions

View File

@ -468,10 +468,10 @@ session.web.ViewManagerAction = session.web.ViewManager.extend(/** @lends oepner
}
var $title = self.$element.find('.oe_view_title'),
$search_prefix = $title.find('span');
$search_prefix = $title.find('span.oe_searchable_view');
if (controller.searchable !== false) {
if (!$search_prefix.length) {
$title.prepend('<span>' + _t("Search: ") + '</span>');
$title.prepend('<span class="oe_searchable_view">' + _t("Search: ") + '</span>');
}
} else {
$search_prefix.remove();