When I click any of the internal links on a jquery mobile powered site it shows the spinner and tries to load the page via AJAX. I would like to load each page through a full reload instead. I can achieve this by adding this attribute to all links:
data-ajax="false"
But I have a lot of links and would rather not clutter up the HTML by adding these manually. Is there a way I can define it in the JS in one place and have it impact all links site wide?
I tried this but no luck:
$(document).bind("mobileinit", function(){
$.extend($.mobile, {
defaultTransition: 'none',
ajaxEnabled: false,
ajaxLinksEnabled: false
});
});