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

parent 938ecc43
...@@ -6,7 +6,8 @@ use yii\helpers\Url; ...@@ -6,7 +6,8 @@ use yii\helpers\Url;
/* @var $this yii\web\View */ /* @var $this yii\web\View */
/* @var $model common\modules\blog\models\Post */ /* @var $model common\modules\blog\models\Post */
$this->registerJs("$('.article_short_txt').find('img').click(function() { $this->registerJs("
$('.article_short_txt').find('img').click(function() {
$.magnificPopup.open({ $.magnificPopup.open({
items: { items: {
src: $(this).attr('src') src: $(this).attr('src')
......
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