[FIX] SEO bug + label

bzr revid: ddm@openerp.com-20140121142052-3u9dcu995p1tdu6b
This commit is contained in:
ddm@openerp.com
2014-01-21 15:20:52 +01:00
parent a6ad36ef89
commit cccdc808f9
+5 -2
View File
@@ -25,7 +25,10 @@
} : htmlPage.isInBody(keyword) ? {
title: 'label label-info',
description: "This keyword is used in the page content."
} : { title: "", description: "" };
} : {
title: 'label label-default',
description: "This keyword is not used anywhere on the page."
};
}
website.seo.Suggestion = openerp.Widget.extend({
@@ -387,7 +390,7 @@
if (!self.canEditDescription) {
$modal.find('textarea[name=seo_page_description]').attr('disabled', true);
}
if (!self.canEditTitle && !canEditDescription && !canEditKeywords) {
if (!self.canEditTitle && !self.canEditDescription && !self.canEditKeywords) {
$modal.find('button[data-action=update]').attr('disabled', true);
}
});