Skip to content

Commit

Permalink
Remove obsolete method
Browse files Browse the repository at this point in the history
  • Loading branch information
magicsunday committed Nov 20, 2023
1 parent bc5027d commit 3155a85
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions resources/js/modules/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
// });
// });
// }
}

0 comments on commit 3155a85

Please sign in to comment.