mirror of
https://github.com/moparisthebest/mail
synced 2024-08-13 16:43:47 -04:00
18 lines
475 B
JavaScript
18 lines
475 B
JavaScript
(function() {
|
|
'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();
|
|
});
|
|
});
|
|
|
|
}()); |