* fix a bug and notice.

This commit is contained in:
wangyidong
2015-03-13 13:55:06 +08:00
parent c4ade54fc3
commit 2fce1a136b
2 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -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'));
+7 -5
View File
@@ -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. */