From 5fd9505c1780f6a5c86b600339a0ace448ea66de Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 1 Feb 2010 00:16:52 -0700 Subject: [PATCH] phpdoc/tweaks for _generateDeleteResult() --- imp/js/DimpBase.js | 2 +- imp/lib/Ajax/Application.php | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index 30bd673d2..6fbbb9bc4 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -2236,7 +2236,7 @@ var DimpBase = { this.loadingImg('viewport', false); r = r.deleted; - if (!r.uids || r.folder != this.folder) { + if (!r.uids || r.mbox != this.folder) { return; } r.uids = DimpCore.parseRangeString(r.uids); diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index 3f3988cae..3e0d555bb 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -1645,10 +1645,11 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base * * @return object An object with the following entries: *
-     * 'deleted' - (object) TODO:
-     *   folder
-     *   remove
-     *   uids
+     * 'deleted' - (object) Contains the following properties:
+     *   mbox - (string) The current mailbox.
+     *   remove - (integer) True if messages should be removed from the
+     *            viewport.
+     *   uids - (string) The list of messages to delete.
      * 'ViewPort' - (object) See _viewPortData().
      * 'poll' - (array) Mailbox names as the keys, number of unseen messages
      *          as the values.
@@ -1658,7 +1659,7 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base
                                              $nothread = false)
     {
         $del = new stdClass;
-        $del->folder = $vars->view;
+        $del->mbox = $vars->view;
         $del->uids = $GLOBALS['imp_imap']->ob()->utils->toSequenceString($indices, array('mailbox' => true));
         $del->remove = intval($GLOBALS['prefs']->getValue('hide_deleted') ||
                               $GLOBALS['prefs']->getValue('use_trash'));
-- 
2.11.0