[gollem] Re: menu items / javascript

Liam Hoekenga liamr at umich.edu
Mon Jan 20 18:36:14 PST 2003


Any ideas?  I still don't have this working.. but here's the diff of 
what I've done:

diff -U2 -r1.24 menu.inc
--- menu.inc    17 Dec 2002 04:08:17 -0000      1.24
+++ menu.inc    20 Jan 2003 23:32:48 -0000
@@ -5,4 +5,6 @@
  /* Gollem menu items */
  Menu::printItem(Horde::applicationUrl('manager.php?dir=' . 
$_SESSION['gollem']['params']['home']), _("Home"), 'home.gif');
+Menu::printItem('', _("Create Directory"), 'mkdir.gif', 
$registry->getParam('graphics', 'gollem'), '', 'createFolder()');
+Menu::printItem('', _("Change Directory"), 'cd.gif', 
$registry->getParam('graphics', 'gollem'), '', 'changeDirectory()');
  if (($conf['prefs']['driver'] != '') && ($conf['prefs']['driver'] != 
'none')) {
      Menu::printItem(Horde::applicationUrl('prefs.php'), _("Options"), 
'prefs.gif', $registry->getParam('graphics', 'horde'));

On Friday, December 20, 2002, at 03:57 PM, Liam Hoekenga wrote:

> I'm trying to add menu items for Change Directory and Create Folder.. 
> I'm having
> some problems.  The menu items work, but the dialog box they open 
> close after
> about three seconds.  While they're open, they work properly, but 
> having the
> commands available for such a brief period is less then ideal.
>
> Anyhoo... here's what I've got in gollem/templates/menu/menu.inc
>
> Menu::printItem('', _("Create Directory"), 'mkdir.gif',
> $registry->getParam('graphics', 'gollem'), '', 'createFolder()');
> Menu::printItem('', _("Change Directory"), 'cd.gif',
> $registry->getParam('graphics', 'gollem'), '', 'changeDirectory()');
>
> I've got icons I'll submit w/ the patch when this working right.  
> Anyone have
> any suggestions on keeping the dialogue box open until the user 
> chooses to close
> it (eg the current behavior for those options when accessed from the 
> pulldown menu)?
>
> thx
> Liam



More information about the gollem mailing list