Loading autologout.module +1 −0 Original line number Diff line number Diff line Loading @@ -249,6 +249,7 @@ function autologout_page_attachments_alter(array &$attachments) { 'no_button' => $no_button, 'use_alt_logout_method' => $use_alt_logout_method, 'logout_regardless_of_activity' => $logout_regardless_of_activity, 'modal_width' => $settings->get('modal_width') ? (int) $settings->get('modal_width') : 'auto', ]; // If this is an AJAX request, then the logout redirect url should still be // referring to the page that generated this request. Loading autologout.post_update.php +5 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,11 @@ function autologout_post_update_8014() { $config->set('inactivity_message_type', 'status'); } // Issue 3205591: Add modal_width config default value if (empty($config->get('modal_width'))) { $config->set('modal_width', 450); } $config->save(TRUE); // Issue #3101732: Flush caches due to service signature changes. Loading config/install/autologout.settings.yml +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ no_dialog: false message: 'Your session is about to expire. Do you want to reset it?' inactivity_message: 'You have been logged out due to inactivity.' inactivity_message_type: status modal_width: 450 enforce_admin: false jstimer_format: '%hours%:%mins%:%secs%' jstimer_js_load_option: false Loading config/schema/autologout.schema.yml +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ autologout.settings: inactivity_message_type: type: string label: 'Type of the message displayed' modal_width: type: integer label: 'Modal width' enforce_admin: type: boolean label: 'Enable admin logout' Loading js/autologout.js +1 −1 Original line number Diff line number Diff line Loading @@ -171,7 +171,7 @@ return $('<div id="autologout-confirm">' + localSettings.message + '</div>').dialog({ modal: true, closeOnEscape: false, width: "auto", width: localSettings.modal_width, dialogClass: 'autologout-dialog', title: localSettings.title, buttons: buttons, Loading Loading
autologout.module +1 −0 Original line number Diff line number Diff line Loading @@ -249,6 +249,7 @@ function autologout_page_attachments_alter(array &$attachments) { 'no_button' => $no_button, 'use_alt_logout_method' => $use_alt_logout_method, 'logout_regardless_of_activity' => $logout_regardless_of_activity, 'modal_width' => $settings->get('modal_width') ? (int) $settings->get('modal_width') : 'auto', ]; // If this is an AJAX request, then the logout redirect url should still be // referring to the page that generated this request. Loading
autologout.post_update.php +5 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,11 @@ function autologout_post_update_8014() { $config->set('inactivity_message_type', 'status'); } // Issue 3205591: Add modal_width config default value if (empty($config->get('modal_width'))) { $config->set('modal_width', 450); } $config->save(TRUE); // Issue #3101732: Flush caches due to service signature changes. Loading
config/install/autologout.settings.yml +1 −0 Original line number Diff line number Diff line Loading @@ -11,6 +11,7 @@ no_dialog: false message: 'Your session is about to expire. Do you want to reset it?' inactivity_message: 'You have been logged out due to inactivity.' inactivity_message_type: status modal_width: 450 enforce_admin: false jstimer_format: '%hours%:%mins%:%secs%' jstimer_js_load_option: false Loading
config/schema/autologout.schema.yml +3 −0 Original line number Diff line number Diff line Loading @@ -40,6 +40,9 @@ autologout.settings: inactivity_message_type: type: string label: 'Type of the message displayed' modal_width: type: integer label: 'Modal width' enforce_admin: type: boolean label: 'Enable admin logout' Loading
js/autologout.js +1 −1 Original line number Diff line number Diff line Loading @@ -171,7 +171,7 @@ return $('<div id="autologout-confirm">' + localSettings.message + '</div>').dialog({ modal: true, closeOnEscape: false, width: "auto", width: localSettings.modal_width, dialogClass: 'autologout-dialog', title: localSettings.title, buttons: buttons, Loading