修改取附件的默认顺序,更符合通常需要
This commit is contained in:
@@ -60,7 +60,7 @@ $(document).ready(function() {
|
||||
|
||||
function fileUploadStart (file) {
|
||||
$('<li id="' + file.id + '" class="loading">'
|
||||
+ file.name + '</li>').prependTo('#file-list');
|
||||
+ file.name + '</li>').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 = $('<li>' + fileError + '<br />' + word + '</li>').prependTo('#file-list');
|
||||
li = $('<li>' + fileError + '<br />' + word + '</li>').appendTo('#file-list');
|
||||
}
|
||||
|
||||
li.effect('highlight', {color : '#FBC2C4'}, 2000, function () {
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user