mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
BUGFIX: clicking cancel should not reload the page
when assets have changed.
This commit is contained in:
parent
73aa22ca8f
commit
a24e1f152d
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue