SEO keyword bugfix

bzr revid: ddm@openerp.com-20130902102939-mkpf08al9p3tibpp
This commit is contained in:
ddm 2013-09-02 12:29:39 +02:00
parent efc408e3bf
commit f0021c5cc5
2 changed files with 2 additions and 2 deletions

View File

@ -188,7 +188,7 @@
var $modal = $el || this.$el;
function keywords () {
return $('.js_seo_keyword').map(function () {
return $(this).text();
return $(this).data('keyword');
});
}
function isKeywordListFull () {

View File

@ -135,7 +135,7 @@
<t t-name="website.seo_keyword">
<li class="oe_seo_keyword">
<span t-attf-class="label label-#{ widget.type } js_seo_keyword">
<span t-attf-class="label label-#{ widget.type } js_seo_keyword" t-att-data-keyword="widget.keyword">
<t t-raw="widget.keyword"/>
&amp;nbsp;
<a href="#" class="oe_remove" data-action="remove-keyword">x</a>