+ add the feature of reverse the history.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
<script src='<?php echo $jsRoot;?>jquery/reverseorder/raw.js' type='text/javascript'></script>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->history;?></legend>
|
||||
<ol>
|
||||
<legend onclick='$("#historyItem li").reverseOrder();' class='hand'><?php echo $lang->history . $lang->reverse;?></legend>
|
||||
<ol id='historyItem'>
|
||||
<?php $i = 1;?>
|
||||
<?php foreach($actions as $action):?>
|
||||
<li>
|
||||
<li value='<?php echo $i ++;?>'>
|
||||
<?php
|
||||
if(isset($users[$action->actor])) $action->actor = $users[$action->actor];
|
||||
if(strpos($action->actor, ':') !== false) $action->actor = substr($action->actor, strpos($action->actor, ':') + 1);
|
||||
|
||||
@@ -50,6 +50,7 @@ $lang->downArrow = '↓';
|
||||
$lang->goback = '返回';
|
||||
$lang->selectAll = '全选';
|
||||
$lang->attatch = '附件';
|
||||
$lang->reverse = '(切换顺序)';
|
||||
|
||||
/* 主导航菜单。*/
|
||||
$lang->menu->index = '首页|index|index';
|
||||
|
||||
Vendored
+31
@@ -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:
|
||||
* <div>
|
||||
* <div class="item">item 1</div>
|
||||
* <div class="item">item 2</div>
|
||||
* <div class="item">item 3</div>
|
||||
* </div>
|
||||
*
|
||||
* Then call the plugin with the items to reverse:
|
||||
* $('.item').reverseOrder();
|
||||
*
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
$.fn.reverseOrder = function() {
|
||||
return this.each(function() {
|
||||
$(this).prependTo( $(this).parent() );
|
||||
});
|
||||
};
|
||||
})(jQuery);
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user