work around a bug in iOS 6 where ajax requests get cached and only work once
parent
625ad32f6c
commit
088253e564
|
@ -1392,6 +1392,12 @@ $(function() {
|
||||||
gcodeViewModel
|
gcodeViewModel
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//work around a stupid iOS6 bug where ajax requests get cached and only work once, as described at http://stackoverflow.com/questions/12506897/is-safari-on-ios-6-caching-ajax-results
|
||||||
|
$.ajaxSetup({
|
||||||
|
type: 'POST',
|
||||||
|
headers: { "cache-control": "no-cache" }
|
||||||
|
});
|
||||||
|
|
||||||
//~~ Show settings - to ensure centered
|
//~~ Show settings - to ensure centered
|
||||||
$('#navbar_show_settings').click(function() {
|
$('#navbar_show_settings').click(function() {
|
||||||
$('#settings_dialog').modal()
|
$('#settings_dialog').modal()
|
||||||
|
|
Loading…
Reference in New Issue