From 283e8ee292011760390836adb789a78e2608d432 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Mon, 28 May 2018 00:28:35 +0700 Subject: [PATCH] CMS JS bug fix Don't overwrite libs bundled into: /resources/vendor/silverstripe/admin/client/dist/js/vendor.js --- src/TextTargetLengthExtension.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/TextTargetLengthExtension.php b/src/TextTargetLengthExtension.php index 24ab778..855ec84 100644 --- a/src/TextTargetLengthExtension.php +++ b/src/TextTargetLengthExtension.php @@ -45,8 +45,6 @@ public function setTargetLength($idealCharCount, $minCharCount = null, $maxCharC $field->setAttribute('data-hint-length-adequate', _t('TextTargetLength.LengthAdequate', 'Okay')); $field->setAttribute('data-hint-length-ideal', _t('TextTargetLength.LengthIdeal', 'Great!')); - Requirements::javascript('silverstripe/admin:thirdparty/jquery/jquery.js'); - Requirements::javascript('silverstripe/admin:thirdparty/jquery-entwine/dist/jquery.entwine-dist.js'); Requirements::javascript('jonom/silverstripe-text-target-length:client/javascript/text-target-length.js'); Requirements::css('jonom/silverstripe-text-target-length:client/css/text-target-length.css');