diff --git a/themes/default/js/greeter.js b/themes/default/js/greeter.js index 1bb350b..ca6150f 100644 --- a/themes/default/js/greeter.js +++ b/themes/default/js/greeter.js @@ -735,7 +735,7 @@ class Theme { session_toggle_handler( event ) { - let $session = $( event.target ).children( 'a' ), + let $session = $( event.target ), session_name = $session.text(), session_key = $session.attr( 'data-session-id' ); diff --git a/web-greeter/greeter.py b/web-greeter/greeter.py index ee6d904..6a9579f 100644 --- a/web-greeter/greeter.py +++ b/web-greeter/greeter.py @@ -98,6 +98,8 @@ class WebGreeter(App): self.config.branding.update(branding_config) self.config.greeter.update(greeter_config) + self._config.debug_mode = greeter_config['debug_mode'] + def load_theme(self): self.logger.debug('Loading theme...') theme_url = '/{0}/{1}/index.html'.format(self.config.themes_dir, self.config.greeter.theme)