From b67df24219bda537fd310f6ad56b73c833858b4b Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 11 Jun 2020 16:18:39 +1000 Subject: [PATCH] Disable sorting - should be sorted by ajax method --- .../adminlte/views/layouts/partials/mainheader.blade.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/themes/adminlte/views/layouts/partials/mainheader.blade.php b/resources/themes/adminlte/views/layouts/partials/mainheader.blade.php index 810ca64..ff8228a 100644 --- a/resources/themes/adminlte/views/layouts/partials/mainheader.blade.php +++ b/resources/themes/adminlte/views/layouts/partials/mainheader.blade.php @@ -101,6 +101,11 @@ matcher: function () { return true; }, + // Disable sorting and just return the items (items should by the ajax method) + sorter: function(items) { + return items; + }, + updater: function (item) { console.log(item.value); window.parent.location.href = item.value;