From d7432bbabff502778de5d5a73629e4b56cf1a1f9 Mon Sep 17 00:00:00 2001 From: bth-openerp Date: Tue, 27 Aug 2013 19:30:57 +0530 Subject: [PATCH] [IMP]Improved for add scrolling class. bzr revid: bth@tinyerp.com-20130827140057-qaw3l9c5pn8uaxvr --- addons/website/static/src/js/website.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/website/static/src/js/website.js b/addons/website/static/src/js/website.js index bc3caaeeecd..890c49dfdaf 100644 --- a/addons/website/static/src/js/website.js +++ b/addons/website/static/src/js/website.js @@ -214,6 +214,9 @@ $('body').addClass('oe_stop_scrolling'); $('body').addClass('oe_stop_scrolling'); $("#mobile-preview").removeClass('hide'); + $("#mobile-preview").find('.oe_mobile_preview_header button').click(function() { + $('body').removeClass('oe_stop_scrolling'); + }); document.getElementById("mobile-viewport").src = window.location.href + "?mobile-preview=true"; this.$el.modal(); },