[SSE mobile] debug 'Add' options on android
This commit is contained in:
parent
8194d6fbf8
commit
edf3c79076
|
@ -132,15 +132,17 @@ define([
|
||||||
if (root && this.layout) {
|
if (root && this.layout) {
|
||||||
var $content = this.layout;
|
var $content = this.layout;
|
||||||
|
|
||||||
|
if ( !$content.find('.navbar').length ) {
|
||||||
// Android fix for navigation
|
// Android fix for navigation
|
||||||
if (Framework7.prototype.device.android) {
|
if (Framework7.prototype.device.android) {
|
||||||
var html = $content.html() + navbar;
|
$content.find('.page').append(navbar);
|
||||||
} else {
|
} else {
|
||||||
html = navbar + $content.html();
|
$content.prepend(navbar);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
root.router.load({
|
root.router.load({
|
||||||
content: html
|
content: $content.html()
|
||||||
});
|
});
|
||||||
|
|
||||||
initEvents.call(this);
|
initEvents.call(this);
|
||||||
|
|
|
@ -150,18 +150,19 @@ define([
|
||||||
|
|
||||||
if (rootView && this.layout) {
|
if (rootView && this.layout) {
|
||||||
var $content = this.layout.find(templateId);
|
var $content = this.layout.find(templateId);
|
||||||
var html, navbar = getNavigation.call(this, templateId);
|
var navbar = getNavigation.call(this, templateId);
|
||||||
|
|
||||||
|
if ( !$content.find('.navbar').length ) {
|
||||||
// Android fix for navigation
|
// Android fix for navigation
|
||||||
if (Framework7.prototype.device.android) {
|
if (Framework7.prototype.device.android) {
|
||||||
// $content.find('.page').append($content.find('.navbar'));
|
$content.find('.page').append(navbar);
|
||||||
html = $content.html() + navbar;
|
|
||||||
} else {
|
} else {
|
||||||
html = navbar + $content.html();
|
$content.prepend(navbar);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rootView.router.load({
|
rootView.router.load({
|
||||||
content: html
|
content: $content.html()
|
||||||
});
|
});
|
||||||
|
|
||||||
this.fireEvent('page:show', [this, templateId]);
|
this.fireEvent('page:show', [this, templateId]);
|
||||||
|
|
Loading…
Reference in a new issue