[IMP]Mobile preview is fixed.
bzr revid: bth@tinyerp.com-20130827071321-0v7xcyis249kyh72
This commit is contained in:
@@ -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";
|
||||
|
||||
},
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user