mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
15 lines
443 B
JavaScript
15 lines
443 B
JavaScript
|
'use strict';
|
||
|
|
||
|
$(document).on('mobileinit', function () {
|
||
|
console.log('mobileinit');
|
||
|
$.mobile.ajaxEnabled = false;
|
||
|
$.mobile.linkBindingEnabled = false;
|
||
|
$.mobile.hashListeningEnabled = false;
|
||
|
$.mobile.pushStateEnabled = false;
|
||
|
$.mobile.defaultPageTransition = 'none';
|
||
|
|
||
|
// Remove page from DOM when it's being replaced
|
||
|
$(document).on('pagehide', 'div[data-role="page"]', function (event, ui) {
|
||
|
$(event.currentTarget).remove();
|
||
|
});
|
||
|
});
|