From a13d5a947a5912a43f43999d438b6c283189f141 Mon Sep 17 00:00:00 2001 From: printempw Date: Sat, 24 Feb 2018 13:51:32 +0800 Subject: [PATCH] Fix tooltips on data tables --- resources/assets/src/js/admin/tables.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/resources/assets/src/js/admin/tables.js b/resources/assets/src/js/admin/tables.js index 8e674cc8..70c57d3b 100644 --- a/resources/assets/src/js/admin/tables.js +++ b/resources/assets/src/js/admin/tables.js @@ -7,6 +7,9 @@ function initUsersTable() { $('#user-table').DataTable({ ajax: dataUrl, scrollY: ($('.content-wrapper').height() - $('.content-header').outerHeight()) * 0.7, + fnDrawCallback: () => { + $('[data-toggle="tooltip"]').tooltip(); + }, rowCallback: (row, data) => { $(row).attr('id', `user-${data.uid}`); }, @@ -133,6 +136,9 @@ function initPlayersTable() { $('#player-table').DataTable({ ajax: dataUrl, scrollY: ($('.content-wrapper').height() - $('.content-header').outerHeight()) * 0.7, + fnDrawCallback: () => { + $('[data-toggle="tooltip"]').tooltip(); + }, columnDefs: [ { targets: 0, @@ -212,6 +218,9 @@ function initPlayersTable() { function initPluginsTable() { return $('#plugin-table').DataTable({ ajax: url('admin/plugins/data'), + fnDrawCallback: () => { + $('[data-toggle="tooltip"]').tooltip(); + }, columnDefs: [ { targets: 0,