From f26456542366c8c41ab3e872c8b068dcc1502fdb Mon Sep 17 00:00:00 2001 From: Dr Masroor Ehsan Date: Tue, 21 Jan 2025 11:01:24 +0600 Subject: [PATCH] minor JS update --- resources/views/staff/worklist/index.blade.php | 5 ++--- .../views/staff/worklist/partials/_nav-top.blade.php | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/resources/views/staff/worklist/index.blade.php b/resources/views/staff/worklist/index.blade.php index 7be3768..872826e 100644 --- a/resources/views/staff/worklist/index.blade.php +++ b/resources/views/staff/worklist/index.blade.php @@ -215,13 +215,12 @@ function formatDate(date) { return new Date(date.getTime() - (date.getTimezoneOffset() * 60000)).toISOString().slice(0, 10); } - filterTableStatus('unread'); - $('a[data-bs-toggle="tab"]').on('click', function (e) { - _status = $(e.target).attr('id').replace('nav-', ''); + _status = $(e.target).attr('id').replace('nav__', ''); filterTable(); }); + filterTableStatus('unread'); }); diff --git a/resources/views/staff/worklist/partials/_nav-top.blade.php b/resources/views/staff/worklist/partials/_nav-top.blade.php index 410d318..bc795ca 100644 --- a/resources/views/staff/worklist/partials/_nav-top.blade.php +++ b/resources/views/staff/worklist/partials/_nav-top.blade.php @@ -1,10 +1,10 @@