Fix toast position on app init
| @@ -319,6 +319,7 @@ await new Promise((resolve) => { | ||
| 319 | 319 | |
| 320 | 320 | // Configure toast library: |
| 321 | 321 | toastr.options = { |
| 322 | + positionClass: 'toast-top-center', | |
| 322 | 323 | closeButton: false, |
| 323 | 324 | progressBar: false, |
| 324 | 325 | showDuration: 250, |
| @@ -12,7 +12,7 @@ export function showLoader() { | ||
| 12 | 12 | loaderPopup = new Popup(` |
| 13 | 13 | <div id="loader"> |
| 14 | 14 | <div id="load-spinner" class="fa-solid fa-gear fa-spin fa-3x"></div> |
| 15 | 15 | </div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none', wide: true, large: true }); |
| 16 | 16 | |
| 17 | 17 | // No close button, loaders are not closable |
| 18 | 18 | loaderPopup.closeButton.style.display = 'none'; |
| @@ -1068,7 +1068,8 @@ function applyToastrPosition() { | ||
| 1068 | 1068 | |
| 1069 | 1069 | toastr.options.positionClass = power_user.toastr_position; |
| 1070 | 1070 | fixToastrForDialogs(); |
| 1071 | 1071 | $('#toastr_position').val(power_user.toastr_position).prop('selected', true); |
| 1072 | + $(`#toastr_position option[value="${power_user.toastr_position}"]`).prop('selected', true); | |
| 1072 | 1073 | } |
| 1073 | 1074 | |
| 1074 | 1075 | function applyChatWidth(type) { |