1 $(document).on('ready ajax:success storage', function() {
2 // Update the "shell access requested" info box according to the
3 // current state of localStorage.
4 var msg = localStorage.getItem('request_shell_access');
5 var $noShellAccessDiv = $('#no_shell_access');
6 if ($noShellAccessDiv.length > 0) {
7 $('.alert-success p', $noShellAccessDiv).text(msg);
8 $('.alert-success', $noShellAccessDiv).toggle(!!msg);