From 75a4613841fbc787c973785d2e0973f79a3e9ee7 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 5 Mar 2010 12:18:18 -0700 Subject: [PATCH] More case fixes --- imp/lib/Ajax/Application.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index efc18720a..b4f96c857 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -37,7 +37,7 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base */ public function responseType() { - return ($this->_action == 'AddAttachment') + return ($this->_action == 'addAttachment') ? 'js-json' : parent::responseType(); } @@ -1276,7 +1276,7 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base $imp_compose = IMP_Compose::singleton($this->_vars->composeCache); $result = new stdClass; - $result->action = 'AddAttachment'; + $result->action = 'addAttachment'; $result->success = 0; if ($_SESSION['imp']['file_upload'] && @@ -1487,7 +1487,7 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base try { $res = $imp_compose->saveDraft($headers, $this->_vars->message, Horde_Nls::getCharset(), $this->_vars->html); - if ($this->_action == 'AutoSaveDraft') { + if ($this->_action == 'autoSaveDraft') { $GLOBALS['notification']->push(_("Draft automatically saved."), 'horde.message'); } else { $GLOBALS['notification']->push($res); @@ -1598,7 +1598,7 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base { /* Only update search mailboxes on forced refreshes. */ if ($GLOBALS['imp_search']->isSearchMbox($this->_vars->view)) { - return ($this->_action == 'ViewPort') || $this->_vars->forceUpdate; + return ($this->_action == 'viewPort') || $this->_vars->forceUpdate; } /* We know we are going to be dealing with this mailbox, so select it -- 2.11.0