primo commit
This commit is contained in:
		| @ -0,0 +1,27 @@ | ||||
| /** | ||||
| Copyright (c) 2013 Dimitrios Mourloukos http://www.tabulizer.com/ | ||||
| */ | ||||
|  | ||||
| ;(function($){ | ||||
| 	 | ||||
| 	/** | ||||
| 	 * jtQuery Extension | ||||
| 	 */ | ||||
| 	$.fn.responsiveReflow = function() { | ||||
| 		var responsive_table = this; | ||||
| 		var columns = new Array(); | ||||
| 		var column_counter = 0; | ||||
|  | ||||
| 		responsive_table.find('> thead > tr > th, > thead > tr > td').each(function() {					 | ||||
| 			var column_data = $(this).text(); | ||||
| 			column_counter++; | ||||
| 			responsive_table.find('> tbody > tr > td:nth-child(' + column_counter + ')').each(function() { | ||||
| 				$(this).attr("data-title", column_data); | ||||
| 			});																 | ||||
| 		});		 | ||||
|  | ||||
| 	}	 | ||||
| 	 | ||||
| })( jtQuery ); | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user