Przeglądaj źródła

Remove "logged in as user" prompt

Kristan Kenney 6 lat temu
rodzic
commit
5a3a08d786
1 zmienionych plików z 1 dodań i 24 usunięć
  1. 1 24
      web/templates/scripts.html

+ 1 - 24
web/templates/scripts.html

@@ -16,30 +16,7 @@
   </script>
 
 <?php
-// Dialogs
-// todo: display all the dialogs?
-
-if (!empty($_SESSION['look_alert'])):
-?>
-  <script>
-    $(function() {
-      $('#dialog:ui-dialog').dialog('destroy');
-      $('#dialog-message').dialog({
-        modal: true,
-        buttons: {
-          Ok: function() {
-            $(this).dialog('close');
-          }
-        }
-      });
-    });
-  </script>
-  <div id="dialog-message" title="<?=__('Welcome')?>">
-    <p class="confirmation"><?=__('LOGGED_IN_AS', $_SESSION['look'])?></p>
-  </div>
-<?php
-  unset($_SESSION['look_alert']);
-elseif (!empty($_SESSION['error_msg'])):
+if (!empty($_SESSION['error_msg'])):
 ?>
   <div>
     <script>