[FIX] : cahnge the cover, the priview is little but once you save it is (too) big

bzr revid: aja@tinyerp.com-20140305125415-1476mmcrf4ukypl6
This commit is contained in:
ajay javiya (OpenERP) 2014-03-05 18:24:15 +05:30
parent 3e7d57c134
commit 7bb880f05c
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@
o.url = $('.cover')[0].style.background.replace('url(','').replace(')','');
});
editor.on('save', self, function (o) {
$('.cover').css("background-image", o.url && o.url !== "" ? 'url(' + o.url + ')' : "");
$('.cover').css("background-image", o.url && o.url !== "" ? 'url(' + o.url + ')' : "" )
.addClass('cover_header');
});
editor.appendTo('body');
},