| 1 | /*! Parser: image - new 7/17/2014 (v2.17.5) */ |
| 2 | /* alt attribute parser for jQuery 1.7+ & tablesorter 2.7.11+ */ |
| 3 | /* NOTE! Moved to jquery.tablesorter.js (core) in v2.18.0 */ |
| 4 | /*jshint jquery:true, unused:false */ |
| 5 | ;(function($) { |
| 6 | 'use strict'; |
| 7 | |
| 8 | $.tablesorter.addParser({ |
| 9 | id: 'image', |
| 10 | is: function() { |
| 11 | return false; |
| 12 | }, |
| 13 | format: function(s, table, cell) { |
| 14 | return $(cell).find('img').attr(table.config.imgAttr || 'alt') || s; |
| 15 | }, |
| 16 | parsed : true, // filter widget flag |
| 17 | type: 'text' |
| 18 | }); |
| 19 | |
| 20 | })(jQuery); |