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

Commit 7bcc07f6 authored by Ronak Patel's avatar Ronak Patel
Browse files

added code on init

parent 8aad2fe9
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -148,7 +148,18 @@ $(document).ready(function() {
      { "type": "any-number" },
      null,
      null,
    ]
    ],
	"initComplete": function(settings, json) {
		var order_type = 'asc';
		if($('.ui-state-default.sorting_desc').length){
			order_type = 'desc';
		}
		if ($('.sorting_1 ul').length > 0) {
		$('.sorting_1 ul').each(function(i, obj) {
			sortList($(this)[0], order_type);
		});
		}
	  }
  });

  $('#smartphone-table').on('order.dt', function() {