From: Evan Prodromou Date: Thu, 5 Feb 2009 21:34:38 +0000 (-0500) Subject: Don't show stretchy-box on avatar if not cropping X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=444c7944809544928e05bd71479f6551acc98fc4;p=quix0rs-gnu-social.git Don't show stretchy-box on avatar if not cropping --- diff --git a/actions/avatarsettings.php b/actions/avatarsettings.php index 5c702ecc0a..3f50ca24cd 100644 --- a/actions/avatarsettings.php +++ b/actions/avatarsettings.php @@ -373,12 +373,14 @@ class AvatarsettingsAction extends AccountSettingsAction { parent::showScripts(); - $jcropPack = common_path('js/jcrop/jquery.Jcrop.pack.js'); - $jcropGo = common_path('js/jcrop/jquery.Jcrop.go.js'); + if ($this->mode == 'crop') { + $jcropPack = common_path('js/jcrop/jquery.Jcrop.pack.js'); + $jcropGo = common_path('js/jcrop/jquery.Jcrop.go.js'); - $this->element('script', array('type' => 'text/javascript', - 'src' => $jcropPack)); - $this->element('script', array('type' => 'text/javascript', - 'src' => $jcropGo)); + $this->element('script', array('type' => 'text/javascript', + 'src' => $jcropPack)); + $this->element('script', array('type' => 'text/javascript', + 'src' => $jcropGo)); + } } }