aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-12 09:22:15 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-12 09:22:15 +0100
commitfa5790c8af3a68111167546ad6d70a7adb9fd21d (patch)
treea1d9f0ff77c7264f47399b89e67033e31171c9df /settings
parentaf1f34e813eb3d7f19ba23a8a930c51bc610d0e9 (diff)
downloadnextcloud-server-fa5790c8af3a68111167546ad6d70a7adb9fd21d.tar.gz
nextcloud-server-fa5790c8af3a68111167546ad6d70a7adb9fd21d.zip
move loading of JS and CSS to template
Diffstat (limited to 'settings')
-rw-r--r--settings/templates/users/main.php13
-rw-r--r--settings/users.php8
2 files changed, 13 insertions, 8 deletions
diff --git a/settings/templates/users/main.php b/settings/templates/users/main.php
index d2b7652f142..1923f4b0493 100644
--- a/settings/templates/users/main.php
+++ b/settings/templates/users/main.php
@@ -4,6 +4,19 @@
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file.
*/
+
+script('settings', [
+ 'users/deleteHandler',
+ 'users/filter',
+ 'users/users',
+ 'users/groups'
+]);
+script('core', [
+ 'multiselect',
+ 'singleselect'
+]);
+style('settings', 'settings');
+
$userlistParams = array();
$allGroups=array();
foreach($_["groups"] as $group) {
diff --git a/settings/users.php b/settings/users.php
index a327cab9b28..75109f9ef74 100644
--- a/settings/users.php
+++ b/settings/users.php
@@ -7,14 +7,6 @@
OC_Util::checkSubAdminUser();
-// We have some javascript foo!
-OC_Util::addScript('settings', 'users/deleteHandler');
-OC_Util::addScript('settings', 'users/filter');
-OC_Util::addScript( 'settings', 'users/users' );
-OC_Util::addScript( 'settings', 'users/groups' );
-OC_Util::addScript( 'core', 'multiselect' );
-OC_Util::addScript( 'core', 'singleselect' );
-OC_Util::addStyle( 'settings', 'settings' );
OC_App::setActiveNavigationEntry( 'core_users' );
$userManager = \OC_User::getManager();