Back button flat out refusing to work?
So, here's the part of my head that loads jQuery, options and JQM:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php echo base_url();?>assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="<?php echo base_url();?>assets/js/options.js"></script>
<script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
And here's what goes into options:
$(document).bind("mobileinit", function() {
$.mobile.page.prototype.options.addBackBtn = true;
if (navigator.userAgent.indexOf("Android") != -1) { $.mobile.defaultPageTransition = 'none'; $.mobile.defaultDialogTransition = 'none'; } else {
$.mobile.defaultPageTransition = 'pop';
}
});
Yet the back button refuses to be added!! I have no idea what the problem is. When typed in console, $.mobile.page.prototype.options.addBackBtn returns true.
What could be causing the issue?