better fix. date was conflicting with another js var on the page.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 10 Sep 2009 16:08:51 +0000 (12:08 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 10 Sep 2009 16:09:45 +0000 (12:09 -0400)
kronolith/templates/edit/edit.inc

index 87d1f0b..22c84a1 100644 (file)
@@ -232,7 +232,7 @@ if ($event->alarm) {
 <tr>
  <td></td>
  <td colspan="4">
-  <?php echo Horde::link(Horde::applicationUrl('attendees.php'), '', 'button', '_blank', 'theDate = (\'000\' + $F(\'start_year\')).slice(-4) + (\'0\' + $F(\'start_month\')).slice(-2) + (\'0\' + $F(\'start_day\')).slice(-2); this.href += (this.href.indexOf(\'?\') == -1 ? \'?\' : \'&\') + \'date=\' + theDate;Horde.popup({ url: this.href });return false;') . _("Edit Attendees and Resources") . '</a>' ?>
+  <?php echo Horde::link(Horde::applicationUrl('attendees.php'), '', 'button', '_blank', 'var date = (\'000\' + $F(\'start_year\')).slice(-4) + (\'0\' + $F(\'start_month\')).slice(-2) + (\'0\' + $F(\'start_day\')).slice(-2); this.href += (this.href.indexOf(\'?\') == -1 ? \'?\' : \'&\') + \'date=\' + date;Horde.popup({ url: this.href });return false;') . _("Edit Attendees and Resources") . '</a>' ?>
  </td>
 </tr>
 </tbody>