[dev] [patches] hide selectors

Francois Marier francois at nit.ca
Fri Aug 6 18:04:33 PDT 2004


Looks like I forgot to attach the patches.  Sorry!

On Fri, Aug 06, 2004 at 09:01:16PM -0400, Francois Marier wrote:
> These patches hide the calendar/notebook/tasklist selector when there
> is only one of them available.
> 
> Francois
> 
> -- 
> Horde developers mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/kronolith/templates/data/import.inc kronolith/templates/data/import.inc
--- ../build/kronolith/templates/data/import.inc	Mon Aug  2 00:09:45 2004
+++ kronolith/templates/data/import.inc	Fri Aug  6 20:54:41 2004
@@ -23,7 +23,7 @@
       <option value="icalendar"><?php echo _("vCalendar/iCalendar") ?></option>
     </select><br />
 
-    <?php if (!$prefs->isLocked('default_share') && count($calendars = Kronolith::listCalendars(false, PERMS_EDIT))): ?>
+    <?php if (!$prefs->isLocked('default_share') && count($calendars = Kronolith::listCalendars(false, PERMS_EDIT)) > 1): ?>
     <?php echo _("Select the calendar to import to:") ?><br />
     <select name="importCal">
       <?php foreach ($calendars as $id => $cal) {
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/nag/templates/data/import.inc nag/templates/data/import.inc
--- ../build/nag/templates/data/import.inc	Mon Aug  2 00:09:45 2004
+++ nag/templates/data/import.inc	Fri Aug  6 20:56:39 2004
@@ -20,7 +20,7 @@
       <option value="vtodo">iCalendar (vTodo)</option>
     </select><br />
 
-<?php if (!$prefs->isLocked('default_tasklist') && count($tasklists = Nag::listTasklists(false, PERMS_EDIT))): ?>
+<?php if (!$prefs->isLocked('default_tasklist') && count($tasklists = Nag::listTasklists(false, PERMS_EDIT)) > 1): ?>
     <?php echo _("Which tasklist should the tasks be added to?") ?>&nbsp;
     <br />
     <select id="tasklist_target" name="tasklist_target">
-------------- next part --------------
diff -rpuN -X ../ignorelist ../build/mnemo/templates/data/import.inc mnemo/templates/data/import.inc
--- ../build/mnemo/templates/data/import.inc	Mon Aug  2 00:09:45 2004
+++ mnemo/templates/data/import.inc	Fri Aug  6 20:58:32 2004
@@ -18,7 +18,7 @@
             <option value="vnote"><?php echo _("vNote") ?></option>
         </select><br />
 
-<?php if (!$prefs->isLocked('default_notepad') && count($notepads = Mnemo::listNotepads(false, PERMS_EDIT))): ?>
+<?php if (!$prefs->isLocked('default_notepad') && count($notepads = Mnemo::listNotepads(false, PERMS_EDIT)) > 1): ?>
         <br /><?php echo _("Which Notepad should the notes be added to?") ?><br />
         <select id="notepad_target" name="notepad_target">
         <?php


More information about the dev mailing list