mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
Merge pull request #10788 from seefo/fb5533
Fixed a bug where restart modal was shown when it shouldn't be
This commit is contained in:
commit
07ccf13ca9
1 changed files with 5 additions and 1 deletions
|
@ -424,7 +424,11 @@ function postSettings(jsonSettings) {
|
||||||
type: 'POST'
|
type: 'POST'
|
||||||
}).done(function(data){
|
}).done(function(data){
|
||||||
if (data.status == "success") {
|
if (data.status == "success") {
|
||||||
showRestartModal();
|
if ($(".save-button").html() === SAVE_BUTTON_LABEL_RESTART) {
|
||||||
|
showRestartModal();
|
||||||
|
} else {
|
||||||
|
location.reload(true);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
showErrorMessage("Error", SETTINGS_ERROR_MESSAGE)
|
showErrorMessage("Error", SETTINGS_ERROR_MESSAGE)
|
||||||
reloadSettings();
|
reloadSettings();
|
||||||
|
|
Loading…
Reference in a new issue