From 539efcf011fc3f67cb3bfc0e0f2aa0301a864b6a Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 8 Sep 2021 08:19:22 -0500 Subject: [PATCH] IE doesn't support templates (#13204) * IE doesn't support templates * extra space --- resources/views/overview/default.blade.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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(`
${data.message}
`); + $widget_body.html('
' + data.message + '
'); } }, error: function (data) { - $widget_body.html(`
${ data.responseJSON.error || '{{ __('Problem with backend') }}'}
`); + $widget_body.html('
' + (data.responseJSON.error || '{{ __('Problem with backend') }}') + '
'); } }); } function grab_data(id, data_type) { - const $parent = $(`#widget_body_${id}`).parent(); + const $parent = $('#widget_body_' + id).parent(); if($parent.data('settings') == 0) { widget_reload(id, data_type);