Skip to content

Commit

Permalink
Support front-end use
Browse files Browse the repository at this point in the history
  • Loading branch information
jonom committed Mar 11, 2016
1 parent d1d3fdd commit 6d480a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/TextTargetLengthExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 6d480a1

Please sign in to comment.