Shout: simplify account selector
authorBen Klang <ben@alkaloid.net>
Mon, 29 Mar 2010 01:49:22 +0000 (21:49 -0400)
committerBen Klang <ben@alkaloid.net>
Mon, 29 Mar 2010 01:49:22 +0000 (21:49 -0400)
shout/templates/menu.inc

index 8a7cba6..bb71a45 100644 (file)
@@ -1,7 +1,5 @@
 <a name="top"></a>
 <?php
-$accesskey = $prefs->getValue('widget_accesskey') ?
-    Horde::getAccessKey(_("Select _Account")) : '';
 $menu_view = $prefs->getValue('menu_view');
 ?>
 
@@ -33,7 +31,6 @@ function accountSubmit(clear)
  <form action="" method="get" name="accountMenu">
   <span style="float:right">
    <?php Horde_Util::pformInput() ?>
-   <label for="account" accesskey="<?php echo $accesskey ?>">
     <select id="account" name="account" onchange="accountSubmit()">
      <?php
         foreach ($accounts as $account => $name) {
@@ -45,7 +42,6 @@ function accountSubmit(clear)
         }
      ?>
     </select>
-   </label>
    <?php
      if (isset($section)) {
          ?>
@@ -55,18 +51,6 @@ function accountSubmit(clear)
     ?>
   </span>
  </form>
-
- <div style="float:right">
-  <?php
-   $link = Horde::link('#', _("Select Account"), '', '', 'accountSubmit(true);
-    return false;');
-   printf('<ul><li>%s%s<br />%s</a></li></ul>',
-    $link, Horde::img('folders/folder_open.png'),
-    ($menu_view != 'icon') ?
-    Horde::highlightAccessKey(_("Select _Account"), $accesskey) : '');
-  ?>
- </div>
-
 <?php } // if (count(accounts) > 1) ?>
 
   <?php echo Shout::getMenu('string') ?>