Skip to content

Commit b4bd110

Browse files
committed
Use new jquery api in monitor
1 parent 91600dd commit b4bd110

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/bulkImport.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function refresh() {
3838
/**
3939
* Initializes the bulk import DataTables
4040
*/
41-
$(document).ready(function () {
41+
$(function () {
4242

4343
const url = '/rest/bulkImports';
4444
console.debug('REST url used to fetch data for the DataTables in bulkImport.js: ' + url);

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/compactions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var compactionsList;
2222
/**
2323
* Creates active compactions table
2424
*/
25-
$(document).ready(function () {
25+
$(function () {
2626
// Create a table for compactions list
2727
compactionsList = $('#compactionsList').DataTable({
2828
"ajax": {

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/ec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var runningTableData;
2727
/**
2828
* Creates active compactions table
2929
*/
30-
$(document).ready(function () {
30+
$(function () {
3131
if (sessionStorage.ecDetailsJSON === undefined) {
3232
sessionStorage.ecDetailsJSON = JSON.stringify([]);
3333
}

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/gc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var gcTable;
2222
/**
2323
* Creates active compactions table
2424
*/
25-
$(document).ready(function () {
25+
$(function () {
2626
// Create a table for compactions list
2727
gcTable = $('#gcActivity').DataTable({
2828
"ajax": {

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/manager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function refreshManagerTables() {
9090
/**
9191
* Creates initial tables
9292
*/
93-
$(document).ready(function () {
93+
$(function () {
9494

9595
// Generates the manager table
9696
managerStatusTable = $('#managerStatus').DataTable({

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/navbar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function updateServerNotifications(statusData) {
122122
/**
123123
* Creates the initial sidebar
124124
*/
125-
$(document).ready(function () {
125+
$(function () {
126126
refreshSidebar();
127127
});
128128

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/overview.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/**
2222
* Creates overview initial table
2323
*/
24-
$(document).ready(function () {
24+
$(function () {
2525
refreshOverview();
2626
});
2727

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/scans.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var scansList;
2323
/**
2424
* Creates scans initial table
2525
*/
26-
$(document).ready(function () {
26+
$(function () {
2727
// Create a table for scans list
2828
scansList = $('#scansList').DataTable({
2929
"ajax": {

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/systemAlert.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function updateSystemAlerts() {
154154
updateManagerAlerts();
155155
}
156156

157-
$(document).ready(function () {
157+
$(function () {
158158

159159
// dismiss the alert when clicked
160160
$('#systemAlertCloseButton').click(function () {

server/monitor/src/main/resources/org/apache/accumulo/monitor/resources/js/tservers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function clearDeadTServers(server) {
129129
/**
130130
* Creates initial tables
131131
*/
132-
$(document).ready(function () {
132+
$(function () {
133133

134134
refreshRecoveryList();
135135

server/monitor/src/main/resources/org/apache/accumulo/monitor/templates/server.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
-->
2121
<script>
22-
$(document).ready(function () {
22+
$(function () {
2323
// initialize DataTables
2424
initServerTables('${server}');
2525
});

server/monitor/src/main/resources/org/apache/accumulo/monitor/templates/table.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* Creates participating Tservers initial table, passes the tableID from the template
2424
*/
25-
$(document).ready(function () {
25+
$(function () {
2626
initTableServerTable('${tableID}');
2727
});
2828
</script>

server/monitor/src/main/resources/org/apache/accumulo/monitor/templates/tables.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* - uses ajax call for data source and saves sort state in session
2626
* - defines custom number formats
2727
*/
28-
$(document).ready(function () {
28+
$(function () {
2929
3030
tableList = $('#tableList').DataTable({
3131
"ajax": {

0 commit comments

Comments
 (0)