From 9b2308173dd485bf2a3f509488ea983b65d4debd Mon Sep 17 00:00:00 2001 From: Severin Hauser Date: Mon, 13 Feb 2023 11:58:49 +0100 Subject: [PATCH] chore(js): remove jQuery version check https://github.com/silverstripe/silverstripe-admin/releases/tag/1.12.1 has fixed the regression --- javascript/TreeView.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/javascript/TreeView.js b/javascript/TreeView.js index 88076b8..db8acdd 100644 --- a/javascript/TreeView.js +++ b/javascript/TreeView.js @@ -1,12 +1,4 @@ (function($) { - // Silverstripe <= 4.12 use jQuery 3.6 which breaks jQuery UI's 'dialog' function. - // If we detect a jQuery version > 3, we lazy load jQuery migrate - if ($().jquery.startsWith('3')) { - const migrateScript = document.createElement('script'); - migrateScript.src = 'https://code.jquery.com/jquery-migrate-3.4.0.min.js'; - document.body.appendChild(migrateScript); - } - function TreeViewContextMenu() { this.createDom = function(id, name) { this.$menu = $(