Commit 7a3fb3f7 authored by Romain Courteaud's avatar Romain Courteaud

Separate jqm config in another file.

Only for readability.
parent 9bbb189a
...@@ -330,6 +330,7 @@ ...@@ -330,6 +330,7 @@
<script type="text/javascript" src="static/js/jquery.slapos.js"></script> <script type="text/javascript" src="static/js/jquery.slapos.js"></script>
<script type="text/javascript" src="static/js/jquery.urljs.js"></script> <script type="text/javascript" src="static/js/jquery.urljs.js"></script>
<script type="text/javascript" src="static/js/fake.js"></script> <script type="text/javascript" src="static/js/fake.js"></script>
<script type="text/javascript" src="static/js/jqm-config.js"></script>
<script type="text/javascript" src="static/js/core.js"></script> <script type="text/javascript" src="static/js/core.js"></script>
<script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script>
</head> </head>
......
...@@ -676,14 +676,6 @@ ...@@ -676,14 +676,6 @@
}; };
}(jQuery)); }(jQuery));
$(document).bind("mobileinit", function(){
// let's handle ourself the hashchange event
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
$.mobile.ajaxEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.defaultPageTransition = 'none';
});
$(document).bind('pagecreate', function () { $(document).bind('pagecreate', function () {
$('body').vifib(); $('body').vifib();
}); });
......
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
$.mobile.linkBindingEnabled = false;
$.mobile.hashListeningEnabled = false;
$.mobile.pushStateEnabled = false;
// Disable transition
// $.mobile.defaultPageTransition = 'none';
// Remove page from DOM when it's being replaced
$('div[data-role="page"]').live('pagehide', function (event, ui) {
$(event.currentTarget).remove();
});
});
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