|
|
|
@ -48,6 +48,12 @@ router.on("pageInit", function (pagedata) {
|
|
|
|
|
eval($$(this).text());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// Stop text selection from popping a system toolbar even after changing pages
|
|
|
|
|
if (window.getSelection) {
|
|
|
|
|
window.getSelection().removeAllRanges();
|
|
|
|
|
} else if (document.selection) {
|
|
|
|
|
document.selection.empty();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -66,6 +72,12 @@ function handleBackButton() {
|
|
|
|
|
} else {
|
|
|
|
|
router.back({force: true, ignoreCache: true});
|
|
|
|
|
}
|
|
|
|
|
// Stop text selection from popping a system toolbar even after changing pages
|
|
|
|
|
if (window.getSelection) {
|
|
|
|
|
window.getSelection().removeAllRanges();
|
|
|
|
|
} else if (document.selection) {
|
|
|
|
|
document.selection.empty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(document).keyup(function (e) {
|
|
|
|
|