diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-12-12 09:22:15 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-12-12 09:22:15 +0100 |
commit | fa5790c8af3a68111167546ad6d70a7adb9fd21d (patch) | |
tree | a1d9f0ff77c7264f47399b89e67033e31171c9df /settings | |
parent | af1f34e813eb3d7f19ba23a8a930c51bc610d0e9 (diff) | |
download | nextcloud-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.php | 13 | ||||
-rw-r--r-- | settings/users.php | 8 |
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(); |