Don't show stretchy-box on avatar if not cropping
This commit is contained in:
parent
99d520b351
commit
444c794480
|
@ -373,12 +373,14 @@ class AvatarsettingsAction extends AccountSettingsAction
|
||||||
{
|
{
|
||||||
parent::showScripts();
|
parent::showScripts();
|
||||||
|
|
||||||
$jcropPack = common_path('js/jcrop/jquery.Jcrop.pack.js');
|
if ($this->mode == 'crop') {
|
||||||
$jcropGo = common_path('js/jcrop/jquery.Jcrop.go.js');
|
$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',
|
$this->element('script', array('type' => 'text/javascript',
|
||||||
'src' => $jcropPack));
|
'src' => $jcropPack));
|
||||||
$this->element('script', array('type' => 'text/javascript',
|
$this->element('script', array('type' => 'text/javascript',
|
||||||
'src' => $jcropGo));
|
'src' => $jcropGo));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user