diff --git a/module/common/action.html.php b/module/common/action.html.php index 9d5bf827af..fb83755066 100644 --- a/module/common/action.html.php +++ b/module/common/action.html.php @@ -1,8 +1,10 @@ +
- history;?> -
    + history . $lang->reverse;?> +
      + -
    1. +
    2. actor])) $action->actor = $users[$action->actor]; if(strpos($action->actor, ':') !== false) $action->actor = substr($action->actor, strpos($action->actor, ':') + 1); diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 1684fc90ea..8c132c8bd3 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -50,6 +50,7 @@ $lang->downArrow = '↓'; $lang->goback = '返回'; $lang->selectAll = '全选'; $lang->attatch = '附件'; +$lang->reverse = '(切换顺序)'; /* 主导航菜单。*/ $lang->menu->index = '首页|index|index'; diff --git a/www/js/jquery/reverseorder/raw.js b/www/js/jquery/reverseorder/raw.js new file mode 100644 index 0000000000..9cd5cbb718 --- /dev/null +++ b/www/js/jquery/reverseorder/raw.js @@ -0,0 +1,31 @@ +/* reverseOrder : jQuery order reverser plugin + * + * Written by Corey H Maass for Arc90 + * (c) Arc90, Inc. + * + * http://www.arc90.com + * http://lab.arc90.com + * + * Licensed under: + * Creative Commons Attribution-Share Alike 3.0 http://creativecommons.org/licenses/by-sa/3.0/us/ + * + * Gotta love a plugin with more comments than actual code. :-) + * items need to all be in the same parent like: + *
      + *
      item 1
      + *
      item 2
      + *
      item 3
      + *
      + * + * Then call the plugin with the items to reverse: + * $('.item').reverseOrder(); + * + */ + +(function($) { +$.fn.reverseOrder = function() { + return this.each(function() { + $(this).prependTo( $(this).parent() ); + }); +}; +})(jQuery); \ No newline at end of file diff --git a/www/theme/default/style.css b/www/theme/default/style.css index f38f7659db..b27250fe0b 100644 --- a/www/theme/default/style.css +++ b/www/theme/default/style.css @@ -238,3 +238,4 @@ caption {border:1px solid #e4e4e4; background:#efefef; margin:0; padding:5 .pass {color:darkgreen} .blocked {color:yellow} .fail {color:red} +.hand {cursor:pointer}