diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index 4b62f92f..d64774bd 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -874,6 +874,7 @@ class PanelHandler(BaseHandler): ): if item not in page_data["backgrounds"]: page_data["backgrounds"].append(item) + page_data["background"] = self.controller.cached_login else: page_data["managed_users"] = self.controller.users.get_managed_users( exec_user["user_id"] diff --git a/app/frontend/templates/panel/panel_config.html b/app/frontend/templates/panel/panel_config.html index 26f34a12..a4ee9f66 100644 --- a/app/frontend/templates/panel/panel_config.html +++ b/app/frontend/templates/panel/panel_config.html @@ -247,11 +247,13 @@
-
+
- +
@@ -265,7 +267,7 @@
-

Login Background Image



+

{{ translate('panelConfig', 'loginBackground', data['lang']) }}




+
+
+
{{ translate('panelConfig', 'preview', data['lang']) }}:
+ +


- - + +
@@ -332,6 +342,13 @@ $('.too_small2').popover("hide"); } // New width }); + $('#file').change(function () { + console.log("File changed"); + if ($('#file').val()) { + $('#upload-button').prop("disabled", false); + console.log("File changed good"); + } + });