diff --git a/code/TextTargetLengthExtension.php b/code/TextTargetLengthExtension.php index 3c8f295..9de9d35 100755 --- a/code/TextTargetLengthExtension.php +++ b/code/TextTargetLengthExtension.php @@ -35,6 +35,8 @@ public function setTargetLength($idealCharCount, $minCharCount = null, $maxCharC $field->setAttribute('data-target-ideal-length', $idealCharCount); $field->setAttribute('data-target-min-length', $minCharCount); $field->setAttribute('data-target-max-length', $maxCharCount); + Requirements::javascript(FRAMEWORK_DIR.'/thirdparty/jquery/jquery.js'); + Requirements::javascript(FRAMEWORK_DIR.'/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js'); Requirements::javascript(TEXTTARGETLENGTH_DIR.'/javascript/text-target-length.js'); Requirements::css(TEXTTARGETLENGTH_DIR.'/css/text-target-length.css');