Skip to content

Commit

Permalink
Merge pull request #9 from booxmedialtd/sandesh/BPLAT-4938
Browse files Browse the repository at this point in the history
BPLAT-4938 Moved clientScript logic to base controller - AuthItemController
  • Loading branch information
evgenii-aminocom authored Mar 5, 2018
2 parents 3558067 + e77e18d commit 4635bb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions controllers/AssignmentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ public function actionIndex()
{
$dataProvider = new CActiveDataProvider($this->module->userClass);

$cs = Yii::app()->clientScript;
$cs->scriptMap = [
'bootstrap.min.js' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'
];

$this->render(
'index',
array(
Expand Down
5 changes: 5 additions & 0 deletions controllers/AuthItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ public function actionIndex()
$dataProvider = new AuthItemDataProvider();
$dataProvider->type = $this->type;

$cs = Yii::app()->clientScript;
$cs->scriptMap = [
'bootstrap.min.js' => 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'
];

$this->render(
'index',
array(
Expand Down

0 comments on commit 4635bb0

Please sign in to comment.