rem: function(){ var newColumnToSort = $(this).attr('id');  var currentSortedColumn =  getRequestVariable('filter_sort_column'); var currentSortedOrder = getRequestVariable('filter_sort_order'); if(currentSortedColumn == newColumnToSort) {  if(currentSortedOrder == 'asc') { currentSortedOrder = 'desc'; } else { currentSortedOrder = 'asc'; } } setVariable('filter_offset', 0); setVariable('filter_sort_column', newColumnToSort); setVariable('filter_sort_order', currentSortedOrder); reloadAjaxDataTable(); 
add: function() {  var idSubTable = $(this).attr('id'); var divIdToReplaceWithSubTable = 'subDataTable_'+idSubTable;  if( !DataTableAlreadyLoaded[idSubTable] ) {    var numberOfColumns = $(this).children().length;    $(this).after( '\ <tr>\ <td colspan="'+numberOfColumns+'">\ <div id="'+divIdToReplaceWithSubTable+'">\ <span id="loadingDataTable" style="display:inline"><img src="themes/default/images/loading-blue.gif"> Loading...</span>\ </div>\ </td>\ </tr>\ ');  var savedActionVariable = getRequestVariable(workingDivId,'action');    filtersToRestore = resetAllFilters();  setVariable(workingDivId, 'idSubtable', idSubTable); setVariable(workingDivId, 'action', getRequestVariable(workingDivId,'actionToLoadTheSubTable')); reloadAjaxDataTable(workingDivId, false ); setVariable(workingDivId, 'action', savedActionVariable); setVariable(workingDivId, 'idSubtable', false); toString(filtersToRestore); restoreAllFilters(filtersToRestore);   DataTableAlreadyLoaded[idSubTable] = 1;  $(this).next().toggle(); 
context: 			function(){				var newColumnToSort = $(this).attr('id');				// we lookup if the column to sort was already this one, if it is the case then we switch from desc <-> asc 				var currentSortedColumn =  getRequestVariable('filter_sort_column');				var currentSortedOrder = getRequestVariable('filter_sort_order');				if(currentSortedColumn == newColumnToSort) 				{					// toggle the sorted order					if(currentSortedOrder == 'asc')					{						currentSortedOrder = 'desc';					}					else					{						currentSortedOrder = 'asc';					}				}				setVariable('filter_offset', 0); 				setVariable('filter_sort_column', newColumnToSort);				setVariable('filter_sort_order', currentSortedOrder);				reloadAjaxDataTable();			}
meta: 635	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/635/d40e5b844e8c4a61e3300a0734b322039c105185/datatable.js/clean/plugins/UserSettings/templates/datatable.js