BUGFIX: clicking cancel should not reload the page

when assets have changed.
This commit is contained in:
Régis Hanol 2014-01-19 20:55:46 +01:00
parent 73aa22ca8f
commit a24e1f152d

View file

@ -15,8 +15,10 @@ Discourse.addInitializer(function() {
// since we can do this transparently for people browsing the forum
// hold back the message a couple of hours
setTimeout(function() {
bootbox.confirm(I18n.lookup("assets_changed_confirm"), function(){
bootbox.confirm(I18n.lookup("assets_changed_confirm"), function(result){
if (result) {
document.location.reload();
}
});
}, 1000 * 60 * 120);
}