mirror of
https://github.com/nextcloud/server.git
synced 2024-07-29 20:15:55 +02:00
add reset button for the filter field
This commit is contained in:
parent
3ff123f247
commit
a9bd416643
@ -63,8 +63,8 @@ li.active span.utils .delete {
|
|||||||
}
|
}
|
||||||
li.active .rename {
|
li.active .rename {
|
||||||
padding: 8px 14px 20px 14px;
|
padding: 8px 14px 20px 14px;
|
||||||
top: 0px; position: absolute; width: 16px; height: 16px;
|
top: 0px; position: absolute; width: 16px; height: 16px;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
display: inline-block !important;
|
display: inline-block !important;
|
||||||
}
|
}
|
||||||
li.active span.utils .delete img { margin: 14px; }
|
li.active span.utils .delete img { margin: 14px; }
|
||||||
@ -108,6 +108,12 @@ div.quota>span {
|
|||||||
}
|
}
|
||||||
select.quota.active { background: #fff; }
|
select.quota.active { background: #fff; }
|
||||||
|
|
||||||
|
input.userFilter {width: 200px;}
|
||||||
|
span.userFilterReset {
|
||||||
|
width: 16px; height: 16px; position: absolute;
|
||||||
|
padding-top: 20px; margin-left: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
/* positioning fixes */
|
/* positioning fixes */
|
||||||
#newuser .multiselect {
|
#newuser .multiselect {
|
||||||
min-width: 150px !important;
|
min-width: 150px !important;
|
||||||
|
@ -71,3 +71,15 @@ UserManagementFilter.prototype.run = function() {
|
|||||||
UserManagementFilter.prototype.getPattern = function() {
|
UserManagementFilter.prototype.getPattern = function() {
|
||||||
return this.filterInput.val();
|
return this.filterInput.val();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief adds reset functionality to an HTML element
|
||||||
|
* @param jQuery the jQuery representation of that element
|
||||||
|
*/
|
||||||
|
UserManagementFilter.prototype.addResetButton = function(button) {
|
||||||
|
var umf = this;
|
||||||
|
button.click(function(){
|
||||||
|
umf.filterInput.val('');
|
||||||
|
umf.run();
|
||||||
|
});
|
||||||
|
};
|
@ -425,6 +425,7 @@ $(document).ready(function () {
|
|||||||
// Implements User Search
|
// Implements User Search
|
||||||
filter = new UserManagementFilter(
|
filter = new UserManagementFilter(
|
||||||
$('#usersearchform input'), UserList, GroupList);
|
$('#usersearchform input'), UserList, GroupList);
|
||||||
|
filter.addResetButton($('.userFilterReset').first());
|
||||||
|
|
||||||
UserList.doSort();
|
UserList.doSort();
|
||||||
UserList.availableGroups = $('#content table').data('groups');
|
UserList.availableGroups = $('#content table').data('groups');
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<form autocomplete="off" id="usersearchform">
|
<form autocomplete="off" id="usersearchform">
|
||||||
<input type="text" class="input" placeholder="<?php p($l->t('Search Users and Groups')); ?>" />
|
<input type="text" class="input userFilter" placeholder="<?php p($l->t('Search Users and Groups')); ?>" />
|
||||||
|
<span class="svg icon-delete userFilterReset"></a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue
Block a user