Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8aad2fe9 authored by Ronak Patel's avatar Ronak Patel
Browse files

Removed unncessary code for sorting which resets sorting

parent 108a06f3
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -19,6 +19,24 @@ jQuery.extend( jQuery.fn.dataTableExt.oSort, {
	}
});

// // To allow reseting the sort options, ref https://stackoverflow.com/questions/27008837/jquery-datatable-reset-sorting
// jQuery.fn.dataTableExt.oApi.fnSortNeutral = function ( oSettings )
// {
//     /* Remove any current sorting */
//     oSettings.aaSorting = [];

//     /* Sort display arrays so we get them in numerical order */
//     oSettings.aiDisplay.sort( function (x,y) {
//         return x-y;
//     } );
//     oSettings.aiDisplayMaster.sort( function (x,y) {
//         return x-y;
//     } );

//     /* Redraw */
//     oSettings.oApi._fnReDraw( oSettings );
// };

function updateFilters() {
  $(".smartphone-table tr").filter(function() {
    $(this).toggle(true)