[core] tell Android to reload instead of calling location.reload() if running on IITCm

fixes 842
This commit is contained in:
fkloft 2014-08-13 10:51:37 +02:00
parent ffcc8e3349
commit 360c51e7dc

View File

@ -100,7 +100,13 @@ window.outOfDateUserPrompt = function()
+'<p>If you have just reloaded the page, then an old version of the standard site script is cached somewhere.' +'<p>If you have just reloaded the page, then an old version of the standard site script is cached somewhere.'
+'In this case, try clearing your cache, or waiting 15-30 minutes for the stale data to expire.</p>', +'In this case, try clearing your cache, or waiting 15-30 minutes for the stale data to expire.</p>',
buttons: { buttons: {
'RELOAD': function() { window.location.reload(); } 'RELOAD': function() {
if (typeof android !== 'undefined' && android && android.reloadIITC()) {
android.reloadIITC();
} else {
window.location.reload();
}
}
}, },
close: function(event, ui) { close: function(event, ui) {
delete window.blockOutOfDateRequests; delete window.blockOutOfDateRequests;