move loading of JS and CSS to template

This commit is contained in:
Morris Jobke 2014-12-12 09:22:15 +01:00
parent af1f34e813
commit fa5790c8af
2 changed files with 13 additions and 8 deletions

View File

@ -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) {

View File

@ -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();