mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 20:07:52 -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
|
// since we can do this transparently for people browsing the forum
|
||||||
// hold back the message a couple of hours
|
// hold back the message a couple of hours
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
bootbox.confirm(I18n.lookup("assets_changed_confirm"), function(){
|
bootbox.confirm(I18n.lookup("assets_changed_confirm"), function(result){
|
||||||
document.location.reload();
|
if (result) {
|
||||||
|
document.location.reload();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}, 1000 * 60 * 120);
|
}, 1000 * 60 * 120);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue