diff --git a/index.html b/index.html index acca5522..7e0b85b8 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - + XMRigCC Dashboard @@ -314,23 +314,6 @@ } }); - new $.fn.dataTable.Buttons(table, { - buttons: [ - { text: ' Reset ClientStatusList', - className: 'btn-danger', - enabled: true, - action: function () { - resetClientStatusList(); - } - } - ] - }); - - table.buttons(1, null ).container().appendTo( - table.table().container() - ); - - table.on('xhr.dt', function ( e, settings, json, xhr ) { // check version if (latestRelease === "" && json !== undefined) { @@ -386,6 +369,10 @@ table.draw(); }); + $('#resetClientStatusList').click(function() { + resetClientStatusList(); + }); + $('#clientStatusList tbody ').on( 'click', 'button#EDIT', function () { var data = table.row( $(this).parents('tr') ).data(); var clientId = data['client_status']['client_id']; @@ -668,6 +655,7 @@
+