BUGFIX: clicking cancel should not reload the page
when assets have changed.
This commit is contained in:
parent
73aa22ca8f
commit
a24e1f152d
|
@ -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(){
|
||||
document.location.reload();
|
||||
bootbox.confirm(I18n.lookup("assets_changed_confirm"), function(result){
|
||||
if (result) {
|
||||
document.location.reload();
|
||||
}
|
||||
});
|
||||
}, 1000 * 60 * 120);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue