Navigation Menu

Skip to content

Commit

Permalink
Dev: Add select2 as third-party package
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 2, 2015
1 parent a09ece8 commit 3511e0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions application/config/third_party.php
Expand Up @@ -340,4 +340,16 @@
),
),

// select2
'select2' => array(
'baseUrl' => 'styles/limebootstrap/assets/',
'js' => array('scripts/select2.js'),
'depends' => array(
'bootstrap',
'lime-bootstrap',
//'jquery',
//'jqueryui',
),
),

);
2 changes: 2 additions & 0 deletions application/controllers/admin/pluginmanager.php
Expand Up @@ -133,6 +133,8 @@ public function deactivate($id)
*/
public function configure($id)
{
App()->getClientScript()->registerPackage('select2');

$arPlugin = Plugin::model()->findByPk($id)->attributes;
$oPluginObject = App()->getPluginManager()->loadPlugin($arPlugin['name'], $arPlugin['id']);

Expand Down

0 comments on commit 3511e0f

Please sign in to comment.