[IMP]Mobile preview is fixed.

bzr revid: bth@tinyerp.com-20130827071321-0v7xcyis249kyh72
This commit is contained in:
bth-openerp
2013-08-27 12:43:21 +05:30
parent e5665f8868
commit a204742978
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -78,6 +78,9 @@
$('#mobile-preview').on('hidden', function () {
$('body').removeClass('oe_stop_scrolling');
});
$('.oe_mobile_preview_header button').click(function (){
$("#mobile-preview").addClass('hide');
});
},
start: function() {
var self = this;
@@ -198,6 +201,8 @@
},
mobilePreview: function () {
$('body').addClass('oe_stop_scrolling');
$('body').addClass('oe_stop_scrolling');
$("#mobile-preview").removeClass('hide');
document.getElementById("mobile-viewport").src = window.location.href + "?mobile-preview=true";
},
+1 -1
View File
@@ -3,7 +3,7 @@
-->
<templates id="template" xml:space="preserve">
<t t-name="website.editorbar">
<nav class="navbar navbar-inverse navbar-custom navbar-fixed-top" role="navigation">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-collapse navbar-ex1-collapse" id="website-top-view">
<form class="navbar-form navbar-left">
<button data-action="edit" class="btn btn-primary">Edit</button>