bzr revid: ddm@openerp.com-20130822133621-237gzh6wxisxnn00
This commit is contained in:
ddm 2013-08-22 15:36:21 +02:00
parent f820c074a1
commit 141dcf577b
1 changed files with 2 additions and 1 deletions

View File

@ -676,8 +676,9 @@
dom_ready.then(function () {
website.is_editable = $('html').attr('data-editable') === '1';
var is_smartphone = $('body')[0].clientWidth >= 767;
if (website.is_editable && $('body')[0].clientWidth >= 767) {
if (website.is_editable && is_smartphone) {
website.ready().then(website.init_editor);
}