Увеличение картинок в просмотре статьи в блоге

parent a86f3303
......@@ -6,6 +6,14 @@ use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model common\modules\blog\models\Post */
$this->registerJs("$('.article_short_txt').find('img').click(function() {
$.magnificPopup.open({
items: {
src: $(this).attr('src')
},
type: 'image'
});
});", yii\web\View::POS_END);
?>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment