搞定自动保存

This commit is contained in:
joyqi
2013-10-16 01:37:33 +08:00
parent 177d426913
commit caac2ea4b2
8 changed files with 974 additions and 712 deletions
+3 -3
View File
@@ -91,9 +91,9 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
if ($this->request->isAjax()) {
$created = new Typecho_Date($this->options->gmtTime);
$this->response->throwJson(array(
'success' => 1,
'message' => _t('文章保存于 %s', $created->format('H:i A')),
'cid' => $this->cid
'success' => 1,
'time' => $created->format('H:i:s A'),
'cid' => $this->cid
));
} else {
/** 设置提示信息 */
+3 -3
View File
@@ -588,9 +588,9 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
if ($this->request->isAjax()) {
$created = new Typecho_Date($this->options->gmtTime);
$this->response->throwJson(array(
'success' => 1,
'message' => _t('文章保存于 %s', $created->format('H:i A')),
'cid' => $this->cid
'success' => 1,
'time' => $created->format('H:i:s A'),
'cid' => $this->cid
));
} else {
/** 设置提示信息 */