Add cancel button to MIMP compose screen
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 8 Dec 2009 23:01:45 +0000 (16:01 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 8 Dec 2009 23:05:53 +0000 (16:05 -0700)
imp/compose-mimp.php
imp/templates/compose/compose-mimp.inc

index f1f9ed4..b1fb59c 100644 (file)
@@ -288,6 +288,12 @@ case _("Send"):
         break;
     }
     break;
+
+case _("Cancel"):
+    $imp_compose->deleteAllAttachments();
+    $imp_compose->destroy();
+    require IMP_BASE . '/mailbox-mimp.php';
+    exit;
 }
 
 /* Get the message cache ID. */
index ae3a63d..a4c8314 100644 (file)
@@ -48,6 +48,7 @@ if ($conf['user']['allow_folders'] && !$readonly_drafts) {
 }
 
 $f->add(new Horde_Mobile_submit(_("Expand Names"), 'a'));
+$f->add(new Horde_Mobile_submit(_("Cancel"), 'a'));
 
 $mimp_render->add($menu);
 $mimp_render->display();