mirror of
https://github.com/silverstripe/silverstripe-tagfield
synced 2024-10-22 11:05:32 +02:00
Remove Requirements::javascript()
for Framework src JS
As jQuery is bundled in the frameworks vendor.js having these calls causes a duplicate of the jQuery library This also means plugins link with the wrong library etc. Noticed with `jQuery.dialog()` from a Page edit screen going to an associated DataObject edit screen
This commit is contained in:
parent
57bf2c15ce
commit
ad28757338
@ -153,8 +153,6 @@ class StringTagField extends DropdownField
|
||||
Requirements::css(TAG_FIELD_DIR . '/css/select2.min.css');
|
||||
Requirements::css(TAG_FIELD_DIR . '/css/TagField.css');
|
||||
|
||||
Requirements::javascript(ADMIN_THIRDPARTY_DIR . '/jquery/jquery.js');
|
||||
Requirements::javascript(ADMIN_THIRDPARTY_DIR . '/jquery-entwine/dist/jquery.entwine-dist.js');
|
||||
Requirements::javascript(TAG_FIELD_DIR . '/js/select2.js');
|
||||
Requirements::javascript(TAG_FIELD_DIR . '/js/TagField.js');
|
||||
|
||||
|
@ -201,8 +201,6 @@ class TagField extends DropdownField
|
||||
Requirements::css(TAG_FIELD_DIR . '/css/select2.min.css');
|
||||
Requirements::css(TAG_FIELD_DIR . '/css/TagField.css');
|
||||
|
||||
Requirements::javascript(ADMIN_THIRDPARTY_DIR . '/jquery/jquery.js');
|
||||
Requirements::javascript(ADMIN_THIRDPARTY_DIR . '/jquery-entwine/dist/jquery.entwine-dist.js');
|
||||
Requirements::javascript(TAG_FIELD_DIR . '/js/select2.js');
|
||||
Requirements::javascript(TAG_FIELD_DIR . '/js/TagField.js');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user