Add window options to feedback and account modals

This commit is contained in:
jelveh
2025-12-10 19:44:04 -08:00
parent cfe497bd0c
commit 0d2f4c3f2c
2 changed files with 21 additions and 3 deletions
+20 -3
View File
@@ -172,6 +172,13 @@ async function UIDashboard (options) {
UIWindowSaveAccount({
send_confirmation_code: false,
default_username: window.user.username,
window_options: {
backdrop: true,
close_on_backdrop_click: true,
parent_center: true,
stay_on_top: true,
has_head: false,
},
});
},
});
@@ -211,8 +218,10 @@ async function UIDashboard (options) {
reload_on_success: true,
send_confirmation_code: false,
window_options: {
has_head: true,
stay_on_top: true,
has_head: false,
backdrop: true,
close_on_backdrop_click: true,
parent_center: true,
},
});
},
@@ -236,7 +245,15 @@ async function UIDashboard (options) {
{
html: i18n('contact_us'),
onClick: async function () {
UIWindowFeedback();
UIWindowFeedback({
window_options: {
backdrop: true,
close_on_backdrop_click: true,
parent_center: true,
stay_on_top: true,
has_head: false,
},
});
},
},
'-',
+1
View File
@@ -67,6 +67,7 @@ async function UIWindowQR (options) {
height: 'auto',
dominant: true,
show_in_taskbar: false,
...options.window_options,
onAppend: function (this_window) {
$(this_window).find('.feedback-message').get(0).focus({ preventScroll: true });
},