diff options
author | ringmaster <epithet@gmail.com> | 2014-05-05 22:41:54 -0400 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:53:58 +0200 |
commit | 747c01161530edf47c4e727250f592652e66ba31 (patch) | |
tree | d48468422eb68343e1f8ba68cf022a52f0ac4732 /settings/templates | |
parent | f324aa7b240f8b06485250d583b905fda9c25d03 (diff) | |
download | nextcloud-server-747c01161530edf47c4e727250f592652e66ba31.tar.gz nextcloud-server-747c01161530edf47c4e727250f592652e66ba31.zip |
More specific selectors, javascript cleanup.
* Assigned jQuery selector results to variables for speed.
* Moved all .attr('data') calls to .data() calls.
* Added :data(uid) selector.
* Split the multiselect checkhandlers into separate functions.
* De-duped click event on password change/img.
* Used fluent interface on jQuery object for event binding.
* Removed redundant tag names in class selectors.
* Fixed incorrect date display for last login.
* Added Userlist.has() to search for uid.
* General code convention compliance fixes.
to-do: Group dropdowns currently don't add the admin group after the search result, not sure why yet.
Diffstat (limited to 'settings/templates')
-rw-r--r-- | settings/templates/users/part.setquota.php | 2 | ||||
-rw-r--r-- | settings/templates/users/part.userlist.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/settings/templates/users/part.setquota.php b/settings/templates/users/part.setquota.php index e246a94ad29..fc5624d069a 100644 --- a/settings/templates/users/part.setquota.php +++ b/settings/templates/users/part.setquota.php @@ -6,7 +6,7 @@ <!-- Default storage --> <span><?php p($l->t('Default Quota'));?></span> <?php if((bool) $_['isAdmin']): ?> - <select class='quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>"> + <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>"> <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'> <?php p($l->t('Unlimited'));?> </option> diff --git a/settings/templates/users/part.userlist.php b/settings/templates/users/part.userlist.php index 047ebb46670..c74fdcc9efa 100644 --- a/settings/templates/users/part.userlist.php +++ b/settings/templates/users/part.userlist.php @@ -1,4 +1,4 @@ -<table class="hascontrols grid" data-groups="<?php p($_['allGroups']);?>"> +<table id="userlist" class="hascontrols grid" data-groups="<?php p($_['allGroups']);?>"> <thead> <tr> <?php if ($_['enableAvatars']): ?> @@ -20,7 +20,7 @@ <tbody> <?php foreach($_["users"] as $user): ?> <tr data-uid="<?php p($user["name"]) ?>" - data-displayName="<?php p($user["displayName"]) ?>"> + data-displayname="<?php p($user["displayName"]) ?>"> <?php if ($_['enableAvatars']): ?> <td class="avatar"><div class="avatardiv"></div></td> <?php endif; ?> |