Skip to content

Commit

Permalink
chore(js): remove jQuery version check
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Hauser committed Feb 13, 2023
1 parent 36d6167 commit 9b23081
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions javascript/TreeView.js
Original file line number Diff line number Diff line change
@@ -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 = $(
Expand Down

0 comments on commit 9b23081

Please sign in to comment.