equal
deleted
inserted
replaced
862 }); |
862 }); |
863 })(jQuery); |
863 })(jQuery); |
864 |
864 |
865 |
865 |
866 function cubicwebSortValueExtraction(node){ |
866 function cubicwebSortValueExtraction(node){ |
867 return jQuery(node).attr('cubicweb:sortvalue'); |
867 var sortvalue = jQuery(node).attr('cubicweb:sortvalue'); |
|
868 if (sortvalue === undefined) { |
|
869 return ''; |
|
870 } |
|
871 return sortvalue; |
868 } |
872 } |
869 |
873 |
870 Sortable.sortTables = function() { |
874 Sortable.sortTables = function() { |
871 jQuery("table.listing").tablesorter({textExtraction: cubicwebSortValueExtraction}); |
875 jQuery("table.listing").tablesorter({textExtraction: cubicwebSortValueExtraction}); |
872 } |
876 } |