From 0d28ba06625466adda4cc985d701962843eb5be2 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 9 Sep 2014 18:00:53 +0200 Subject: Added select2 on the apps page Moved setupGroupsSelect() from admin.js to a common settings.js as OC.Settings.setupGoupsSelect(). Now using select2 as well on the apps page. --- settings/apps.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'settings/apps.php') diff --git a/settings/apps.php b/settings/apps.php index 7573c8b573f..6021574cbb3 100644 --- a/settings/apps.php +++ b/settings/apps.php @@ -24,17 +24,17 @@ OC_Util::checkAdminUser(); // Load the files we need -OC_Util::addStyle( "settings", "settings" ); -OC_Util::addScript("core", "multiselect"); +OCP\Util::addStyle('settings', 'settings' ); +OCP\Util::addScript('settings', 'settings'); +OCP\Util::addScript('core', 'select2/select2'); +OCP\Util::addStyle('core', 'select2/select2'); OC_App::setActiveNavigationEntry( "core_apps" ); $combinedApps = OC_App::listAllApps(); -$groups = \OC_Group::getGroups(); $tmpl = new OC_Template( "settings", "apps", "user" ); $tmpl->assign('apps', $combinedApps); -$tmpl->assign('groups', $groups); $appid = (isset($_GET['appid'])?strip_tags($_GET['appid']):''); -- cgit v1.2.3