forked from GNUsocial/gnu-social
Don't show stretchy-box on avatar if not cropping
This commit is contained in:
parent
99d520b351
commit
444c794480
@ -373,6 +373,7 @@ class AvatarsettingsAction extends AccountSettingsAction
|
|||||||
{
|
{
|
||||||
parent::showScripts();
|
parent::showScripts();
|
||||||
|
|
||||||
|
if ($this->mode == 'crop') {
|
||||||
$jcropPack = common_path('js/jcrop/jquery.Jcrop.pack.js');
|
$jcropPack = common_path('js/jcrop/jquery.Jcrop.pack.js');
|
||||||
$jcropGo = common_path('js/jcrop/jquery.Jcrop.go.js');
|
$jcropGo = common_path('js/jcrop/jquery.Jcrop.go.js');
|
||||||
|
|
||||||
@ -382,3 +383,4 @@ class AvatarsettingsAction extends AccountSettingsAction
|
|||||||
'src' => $jcropGo));
|
'src' => $jcropGo));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user