Skip to content

Commit

Permalink
Fixed issue #8059: Template editor register js and css file from temp…
Browse files Browse the repository at this point in the history
…late
  • Loading branch information
SamMousa committed Nov 13, 2013
1 parent d9b9437 commit d8fdf83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/controllers/admin/templates.php
Expand Up @@ -317,6 +317,7 @@ public function index($editfile = 'startpage.pstpl', $screenname = 'welcome', $t
$templatename = Yii::app()->getConfig("defaulttemplate");
}
$aViewUrls = $this->_initialise($templatename, $screenname, $editfile);
App()->getClientScript()->reset();
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'templates.js');
App()->getClientScript()->registerPackage('ace');
App()->getClientScript()->registerPackage('jquery-superfish');
Expand Down

0 comments on commit d8fdf83

Please sign in to comment.