title = Yii::t('catalog', 'Unload'); $this->params[ 'breadcrumbs' ][] = $this->title; ?>
Html::encode($this->title), ] ); ?>
'btn btn-success btn-lg hotline_button', 'data' => [ 'url' => Url::to([ '/ajax/generate-hotline' ]), ], ] ); echo Html::button( \Yii::t('catalog', 'Nadavi'), [ 'class' => 'btn btn-success btn-lg nadavi_button', 'data' => [ 'url' => Url::to([ '/ajax/generate-nadavi' ]), ], ] ); ?>
'); var url = $(this) .data('url'); $.get(url, function() { new PNotify({ title: "Оповещение", text: "Выгрузка обновлена", type: "success", styling: "bootstrap3", icon: "glyphicon glyphicon-exclamation-sign" }); $('.yt-loader') .remove(); }); }); $(document) .on('click', '.nadavi_button', function(e) { $(document.body).append('
'); var url = $(this) .data('url'); $.get(url, function() { new PNotify({ title: "Оповещение", text: "Выгрузка обновлена", type: "success", styling: "bootstrap3", icon: "glyphicon glyphicon-exclamation-sign" }); $('.yt-loader') .remove(); }); }); JS; $this->registerJs($js); ?>