From 542620a9af98d8fbb07e1078ccf6ece94bfc31a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=81=E5=AE=81?= Date: Wed, 9 Apr 2014 11:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=96=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E9=BB=98=E8=AE=A4=E9=A1=BA=E5=BA=8F=EF=BC=8C=E6=9B=B4?= =?UTF-8?q?=E7=AC=A6=E5=90=88=E9=80=9A=E5=B8=B8=E9=9C=80=E8=A6=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/file-upload-js.php | 4 ++-- var/Widget/Archive.php | 2 ++ var/Widget/Contents/Attachment/Related.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/admin/file-upload-js.php b/admin/file-upload-js.php index 84356446..d725f164 100644 --- a/admin/file-upload-js.php +++ b/admin/file-upload-js.php @@ -60,7 +60,7 @@ $(document).ready(function() { function fileUploadStart (file) { $('
  • ' - + file.name + '
  • ').prependTo('#file-list'); + + file.name + '').appendTo('#file-list'); } function fileUploadError (error) { @@ -88,7 +88,7 @@ $(document).ready(function() { if (exist.length > 0) { li = exist.removeClass('loading').html(fileError); } else { - li = $('
  • ' + fileError + '
    ' + word + '
  • ').prependTo('#file-list'); + li = $('
  • ' + fileError + '
    ' + word + '
  • ').appendTo('#file-list'); } li.effect('highlight', {color : '#FBC2C4'}, 2000, function () { diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php index 9ee83414..1663587d 100644 --- a/var/Widget/Archive.php +++ b/var/Widget/Archive.php @@ -1510,6 +1510,7 @@ class Widget_Archive extends Widget_Abstract_Contents * @access public * @param string $format 格式 * @param string $default 如果没有下一篇,显示的默认文字 + * @param array $custom 定制化样式 * @return void */ public function theNext($format = '%s', $default = NULL, $custom = array()) @@ -1547,6 +1548,7 @@ class Widget_Archive extends Widget_Abstract_Contents * @access public * @param string $format 格式 * @param string $default 如果没有上一篇,显示的默认文字 + * @param array $custom 定制化样式 * @return void */ public function thePrev($format = '%s', $default = NULL, $custom = array()) diff --git a/var/Widget/Contents/Attachment/Related.php b/var/Widget/Contents/Attachment/Related.php index b1b7e907..61f84b72 100644 --- a/var/Widget/Contents/Attachment/Related.php +++ b/var/Widget/Contents/Attachment/Related.php @@ -42,7 +42,7 @@ class Widget_Contents_Attachment_Related extends Widget_Abstract_Contents $select->where('table.contents.parent = ?', $this->parameter->parentId); /** 提交查询 */ - $select->order('table.contents.created', Typecho_Db::SORT_DESC); + $select->order('table.contents.created', Typecho_Db::SORT_ASC); if ($this->parameter->limit > 0) { $select->limit($this->parameter->limit);