diff --git a/administrator/components/com_templates/views/template/tmpl/default.php b/administrator/components/com_templates/views/template/tmpl/default.php index 85cf2140569ad..02d4bbc806f48 100644 --- a/administrator/components/com_templates/views/template/tmpl/default.php +++ b/administrator/components/com_templates/views/template/tmpl/default.php @@ -76,7 +76,7 @@ if($this->type == 'image') { JFactory::getDocument()->addScriptDeclaration(" - jQuery(document).ready(function() { + jQuery(document).ready(function($) { var jcrop_api; // Configuration for image cropping @@ -84,7 +84,7 @@ onChange: showCoords, onSelect: showCoords, onRelease: clearCoords, - trueSize: " . $this->image['width'] . "," . $this->image['height'] . "] + trueSize: [" . $this->image['width'] . "," . $this->image['height'] . "] },function(){ jcrop_api = this; });