Browse Source

Module remote view fix message to messageInstall

master
Egorka 6 years ago
parent
commit
b8f08ecac5
  1. 4
      backend/views/module/remote-list.php

4
backend/views/module/remote-list.php

@ -16,11 +16,11 @@ use kartik\dialog\Dialog;
$this->title = Yii::t('main', 'Available Modules');
$this->params['breadcrumbs'][] = $this->title;
$message = Yii::t('main', 'To install the module, use the following command in the SSH console:');
$messageInstall = Yii::t('main', 'To install the module, use the following command in the SSH console:');
$js = <<<JS
$(".install-button").on('click', function () {
var name = $(this).data('name');
krajeeDialog.alert('{$message}' + "\\n" + '<pre><code>php yii module/install ' + name + '</code></pre>');
krajeeDialog.alert('{$messageInstall}' + "\\n" + '<pre><code>php yii module/install ' + name + '</code></pre>');
});
JS;
$this->registerJs($js, $this::POS_READY);

Loading…
Cancel
Save