Subversion Repositories SmartDukaan

Rev

Rev 28795 | Rev 30017 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 28795 Rev 28870
Line 830... Line 830...
830
	return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
830
	return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
831
		return $('input', td).val() * 1;
831
		return $('input', td).val() * 1;
832
	});
832
	});
833
}
833
}
834
 
834
 
-
 
835
$.fn.dataTable.ext.order['dom-stock-numeric'] = function(settings, col) {
-
 
836
	return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
-
 
837
		return $(td).html().split("/")[0] * 1;
-
 
838
	});
-
 
839
}
835
/* Create an array with the values of all the select options in a column */
840
/* Create an array with the values of all the select options in a column */
836
$.fn.dataTable.ext.order['dom-select'] = function(settings, col) {
841
$.fn.dataTable.ext.order['dom-select'] = function(settings, col) {
837
	return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
842
	return this.api().column(col, { order: 'index' }).nodes().map(function(td, i) {
838
		return $('select', td).val();
843
		return $('select', td).val();
839
	});
844
	});