Commit b454a887f3aebd5868fcc4cbb5bf21f149e47251
1 parent
7b3e1bf6
26.05.16 change image download (git strange error, pay attention for this)
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
backend/views/category/_form.php
1 | 1 | <?php |
2 | 2 | |
3 | +use common\components\artboximage\ArtboxImageHelper; | |
3 | 4 | use yii\helpers\Html; |
4 | 5 | use yii\widgets\ActiveForm; |
5 | 6 | use common\modules\file\widgets\ImageUploader; |
... | ... | @@ -79,7 +80,7 @@ use kartik\select2\Select2; |
79 | 80 | ], |
80 | 81 | 'pluginOptions' => [ |
81 | 82 | 'allowedFileExtensions' => ['jpg','gif','png'], |
82 | - 'initialPreview' => $model->imageUrl ? Html::img($model->imageUrl) : '', | |
83 | + 'initialPreview' => ArtboxImageHelper::getImageSrc($model->imageUrl ? $model->imageUrl : '', 'product_trumb'), | |
83 | 84 | 'overwriteInitial' => true, |
84 | 85 | 'showRemove' => true, |
85 | 86 | 'showUpload' => false, | ... | ... |