From 72d33ed0b86fa2d59eaa619683b782173fc1737c Mon Sep 17 00:00:00 2001 From: Yann Hourdel Date: Wed, 2 May 2012 12:26:53 +0200 Subject: [PATCH] added function sort type --- javascript/jquery.fixheadertable.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/javascript/jquery.fixheadertable.js b/javascript/jquery.fixheadertable.js index 7415ca7..51e8a93 100644 --- a/javascript/jquery.fixheadertable.js +++ b/javascript/jquery.fixheadertable.js @@ -294,7 +294,11 @@ var type = options.sortType[number]; - if (type == 'float') { + if ($.isFunction(type)) { + + getSortKey = type; + + } else if (type == 'float') { getSortKey = function(cell) { @@ -999,4 +1003,4 @@ }); }; -})(jQuery); \ No newline at end of file +})(jQuery);