* update zui.sortable.js.

This commit is contained in:
Catouse
2015-05-08 14:36:25 +08:00
parent 163fb178f1
commit 875533c100
5 changed files with 24 additions and 48 deletions
+6
View File
@@ -26,6 +26,12 @@ $(document).ready(function()
trigger: $tbody.find('.sort-handler').length ? '.sort-handler' : null,
finish: function(e)
{
var orders = {};
e.list.each(function(){
var $this = $(this);
orders[$this.data('id')] = parseInt($this.attr('data-order'));
});
e.orders = orders;
$tbody.trigger('sort.sortable', e);
var $thead = $tbody.closest('table').children('thead');
$thead.find('.headerSortDown, .headerSortUp').removeClass('headerSortDown headerSortUp').addClass('header');