From 3155a85b7d3ea05dc4916e5f314869da4d50e357 Mon Sep 17 00:00:00 2001 From: Rico Sonntag Date: Mon, 20 Nov 2023 08:06:49 +0100 Subject: [PATCH] Remove obsolete method --- resources/js/modules/chart.js | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/resources/js/modules/chart.js b/resources/js/modules/chart.js index 55d5d20..31e554b 100644 --- a/resources/js/modules/chart.js +++ b/resources/js/modules/chart.js @@ -194,34 +194,7 @@ export default class Chart */ update(url) { + // See update.js for a possible AJAX only update solution, but which requires some additional work window.location = url; } - - // /** - // * Changes root individual - // * - // * @param {String} url The update url - // * - // * @private - // */ - // update(url) - // { - // var that = this; - // - // $.getJSON(url, function(data) { - // that.data = data; - // that.draw(); - // - // var indSelector = $(document.getElementById('xref')); - // $.ajax({ - // type: 'POST', - // url: indSelector.attr("data-ajax--url"), - // data: { q : data.data.xref } - // }).then(function (data) { - // // create the option and append to Select2 - // var option = new Option(data.data.results[0].text, data.data.results[0].id, true, true); - // indSelector.append(option).trigger('change'); - // }); - // }); - // } }