Merge branch 'master' into 6064-collection-output-of-perf-issue
[arvados.git] / apps / workbench / app / assets / javascripts / request_shell_access.js
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);
9     }
10 });