From 2fce1a136b96ebbe33d31855e396a1dc16ecc2ac Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 13 Mar 2015 13:55:06 +0800 Subject: [PATCH] * fix a bug and notice. --- module/mail/control.php | 2 +- www/js/my.full.js | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/module/mail/control.php b/module/mail/control.php index 33919f2be9..eaa9898af2 100755 --- a/module/mail/control.php +++ b/module/mail/control.php @@ -310,7 +310,7 @@ class mail extends control die(js::confirm($this->lang->mail->confirmDelete, inlink('batchDelete', "confirm=yes") . ($this->config->requestType == 'GET' ? '&' : '?') . "idList=$idList")); } $idList = array(); - if(isset($_GET['idList'])) $idList = explode(',', $_GET['idList']); + if(isset($_GET['idList'])) $idList = explode('|', $_GET['idList']); if($idList) $this->dao->delete()->from(TABLE_MAILQUEUE)->where('id')->in($idList)->exec(); die(js::reload('parent')); diff --git a/www/js/my.full.js b/www/js/my.full.js index 10292dbaff..1c8ea4c16d 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -1178,13 +1178,15 @@ function fixStyle() if($actions.length) $('#titlebar > .heading').css('padding-right', $actions.width()); } +/** + * Start cron. + * + * @access public + * @return void + */ function startCron() { - $.ajax({ - type: "GET", - timeout: 100, - url: createLink('cron', 'ajaxExec') - }); + $.ajax({type:"GET", timeout:100, url:createLink('cron', 'ajaxExec')}); } /* Ping the server every some minutes to keep the session. */