diff --git a/resources/views/overview/default.blade.php b/resources/views/overview/default.blade.php index 2eb5508dac..bbaae4829e 100644 --- a/resources/views/overview/default.blade.php +++ b/resources/views/overview/default.blade.php @@ -610,13 +610,13 @@ } function widget_reload(id, data_type, forceDomInject) { - const $widget_body = $(`#widget_body_${id}`); - const $widget_bootgrid = $(`#widget_body_${id} .bootgrid-table`); + const $widget_body = $('#widget_body_' + id); + const $widget_bootgrid = $('#widget_body_' + id + ' .bootgrid-table'); const settings = $widget_body.parent().data('settings') == 1 ? 1 : 0; if (settings === 1 || forceDomInject) { $widget_bootgrid.bootgrid('destroy'); - $(`#widget_body_${id} *`).off(); + $('#widget_body_' + id + ' *').off(); } else if ($widget_bootgrid[0] && $widget_bootgrid.data('ajax') === true) { // Check to see if a bootgrid already exists and has ajax reloading enabled. // If so, use bootgrid to refresh the data instead of injecting the DOM in request. @@ -625,7 +625,7 @@ $.ajax({ type: 'POST', - url: `${ajax_url}/dash/${data_type}`, + url: ajax_url + '/dash/' + data_type, data: { id, dimensions: { x: $widget_body.width(), y: $widget_body.height() }, @@ -634,21 +634,21 @@ dataType: 'json', success: function (data) { if (data.status === 'ok') { - $(`#widget_title_${id}`).html(data.title); + $('#widget_title_' + id).html(data.title); $widget_body.html(data.html); $widget_body.parent().data('settings', data.show_settings).data('refresh', data.settings.refresh); } else { - $widget_body.html(`