Sha256: b01ae34119b35cfeaa6bf9c8c95a32a3c30372e953b86ba16e066ffd2605d603

Contents?: true

Size: 510 Bytes

Versions: 45

Compression:

Stored size: 510 Bytes

Contents

/*! Parser: image - new 7/17/2014 (v2.17.5) */
/* alt attribute parser for jQuery 1.7+ & tablesorter 2.7.11+ */
/* NOTE! Moved to jquery.tablesorter.js (core) in v2.18.0 */
/*jshint jquery:true, unused:false */
;(function($){
	'use strict';

	$.tablesorter.addParser({
		id: 'image',
		is: function(){
			return false;
		},
		format: function(s, table, cell) {
			return $(cell).find('img').attr(table.config.imgAttr || 'alt') || s;
		},
		parsed : true, // filter widget flag
		type: 'text'
	});

})(jQuery);

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
jquery-tablesorter-1.23.1 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.23.0 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.7 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.6 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.5 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.4 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.3 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.2 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.1 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.22.0 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.21.4 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.21.3 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.21.2 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.21.1 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.21.0 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.20.8 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.20.7 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.20.6 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.20.5 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js
jquery-tablesorter-1.20.4 vendor/assets/javascripts/jquery-tablesorter/parsers/parser-image.js