Skip to content

Node.js based forum software built for the modern web

fix double events on cache table

Barış Soner Uşaklıcdc8eeb8b92a
diff --git a/public/src/admin/advanced/cache.js b/public/src/admin/advanced/cache.js
index d8463da487..7b6ddace1b 100644
--- a/public/src/admin/advanced/cache.js
+++ b/public/src/admin/advanced/cache.js
@@ -28,7 +28,7 @@ define('admin/advanced/cache', ['alerts'], function (alerts) {
});
});
- $(document).on('click', '#cache-table th', function () {
+ $('#cache-table').on('click', 'th', function () {
const table = $(this).closest('table');
const tbody = table.find('tbody');
const columnIndex = $(this).index();