2015-03-28 20:03:50 +00:00
|
|
|
/*! Parser: image - new 7/17/2014 (v2.17.5) */
|
|
|
|
/* alt attribute parser for jQuery 1.7+ & tablesorter 2.7.11+ */
|
2015-11-15 04:17:29 +00:00
|
|
|
/* NOTE! Moved to jquery.tablesorter.js (core) in v2.18.0 */
|
2014-07-11 19:59:57 +00:00
|
|
|
/*jshint jquery:true, unused:false */
|
2018-03-17 20:30:25 +00:00
|
|
|
;(function($) {
|
2015-07-23 04:29:51 +00:00
|
|
|
'use strict';
|
2014-07-11 19:59:57 +00:00
|
|
|
|
|
|
|
$.tablesorter.addParser({
|
2015-07-23 04:29:51 +00:00
|
|
|
id: 'image',
|
2018-03-17 20:30:25 +00:00
|
|
|
is: function() {
|
2014-07-11 19:59:57 +00:00
|
|
|
return false;
|
|
|
|
},
|
|
|
|
format: function(s, table, cell) {
|
|
|
|
return $(cell).find('img').attr(table.config.imgAttr || 'alt') || s;
|
|
|
|
},
|
|
|
|
parsed : true, // filter widget flag
|
2015-07-23 04:29:51 +00:00
|
|
|
type: 'text'
|
2014-07-11 19:59:57 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
})(jQuery);
|