Patch for 'Save As New' in Kronolith
Michael Cochrane
mike@graftonhall.co.nz
Wed, 20 Mar 2002 13:17:15 +0000
Below is a little patch that I use for Kronolith.
It adds a 'Save As New' button when you are editing an event.
This effectivly allows you to copy and event to a new time, well that's what i
use it for anyway. Useful when you have very similar events and don't want to
type them in all the time.
- Mike :-)
Index: kronolith/editeventaction.php
===================================================================
RCS file: /httpd/horde/kronolith/editeventaction.php,v
retrieving revision 1.28
diff -I$Horde -I$Revision -I$Date -r1.28 editeventaction.php
18c18,22
< $event = $calendar->getEventObject(Horde::getFormData('eventID'));
---
> if (Horde::getFormData('saveAsNew')) {
> $event = $calendar->getEventObject();
> } else {
> $event = $calendar->getEventObject(Horde::getFormData('eventID'));
> }
Index: kronolith/templates/edit/edit.inc
===================================================================
RCS file: /httpd/horde/kronolith/templates/edit/edit.inc,v
retrieving revision 1.52
diff -I$Horde -I$Revision -I$Date -r1.52 edit.inc
30a31
> <input type="submit" class="button" name="saveAsNew" value="<?= _("Save As
New") ?>" />
337a339
> <input type="submit" class="button" name="saveAsNew" value="<?= _("Save As
New") ?>" />
354c356
< </script>
\ No newline at end of file
---
> </script>
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/