Commit edf3c790 authored by Maxim Kadushkin's avatar Maxim Kadushkin

[SSE mobile] debug 'Add' options on android

parent 8194d6fb
......@@ -132,15 +132,17 @@ define([
if (root && this.layout) {
var $content = this.layout;
// Android fix for navigation
if (Framework7.prototype.device.android) {
var html = $content.html() + navbar;
} else {
html = navbar + $content.html();
if ( !$content.find('.navbar').length ) {
// Android fix for navigation
if (Framework7.prototype.device.android) {
$content.find('.page').append(navbar);
} else {
$content.prepend(navbar);
}
}
root.router.load({
content: html
content: $content.html()
});
initEvents.call(this);
......
......@@ -150,18 +150,19 @@ define([
if (rootView && this.layout) {
var $content = this.layout.find(templateId);
var html, navbar = getNavigation.call(this, templateId);
// Android fix for navigation
if (Framework7.prototype.device.android) {
// $content.find('.page').append($content.find('.navbar'));
html = $content.html() + navbar;
} else {
html = navbar + $content.html();
var navbar = getNavigation.call(this, templateId);
if ( !$content.find('.navbar').length ) {
// Android fix for navigation
if (Framework7.prototype.device.android) {
$content.find('.page').append(navbar);
} else {
$content.prepend(navbar);
}
}
rootView.router.load({
content: html
content: $content.html()
});
this.fireEvent('page:show', [this, templateId]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment