Skip to content

Commit

Permalink
fixed JCrop in Template Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie.lodder committed Feb 27, 2015
1 parent 0bb0cc5 commit 7b1750b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@
if($this->type == 'image')
{
JFactory::getDocument()->addScriptDeclaration("
jQuery(document).ready(function() {
jQuery(document).ready(function($) {
var jcrop_api;
// Configuration for image cropping
$('#image-crop').Jcrop({
onChange: showCoords,
onSelect: showCoords,
onRelease: clearCoords,
trueSize: " . $this->image['width'] . "," . $this->image['height'] . "]
trueSize: [" . $this->image['width'] . "," . $this->image['height'] . "]
},function(){
jcrop_api = this;
});
Expand Down

0 comments on commit 7b1750b

Please sign in to comment.