[dev] IMP: [patch]

Marc Jauvin marc at register4less.com
Fri Jul 4 05:55:46 PDT 2003


The "Delete" button on the Identities page does not appear; this patch makes it
work.

--
Marc Jauvin
450-441-5458
http://register4less.com
-------------- next part --------------
Index: manage.inc
===================================================================
RCS file: /repository/imp/templates/identities/manage.inc,v
retrieving revision 1.25
diff -u -r1.25 manage.inc
--- manage.inc  17 Jun 2003 07:54:05 -0000      1.25
+++ manage.inc  4 Jul 2003 12:51:44 -0000
@@ -97,9 +97,7 @@
 <table border="0" align="center" width="100%" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap">
 <?php if (!$prefs->isLocked('default_identity')): ?>
     <input type="submit" name="save" class="button" onclick="document.identities.actionID.value='ident_save';return true" value="<?php echo ($actionID == 'ident_edit') ? _("Change") : _("Create") ?>" />&nbsp;
-<script language="JavaScript" type="text/javascript">
-document.write('<input type="submit" name="delete" class="button" onclick="document.identities.actionID.value='ident_delete';" value="<?php echo _("Delete") ?>" />&nbsp;');
-</script>
+    <input type="submit" name="delete" class="button" onclick="document.identities.actionID.value='ident_delete';" value="<?php echo _("Delete") ?>" />
 <?php else: ?>
     <input type="submit" name="save" class="button" onclick="document.identities.actionID.value='ident_save';return true" value="<?php echo _("Change") ?>" />&nbsp;
 <?php endif; ?>


More information about the dev mailing list