}
li.active .rename {
padding: 8px 14px 20px 14px;
- top: 0px; position: absolute; width: 16px; height: 16px;
- opacity: 0.5;
+ top: 0px; position: absolute; width: 16px; height: 16px;
+ opacity: 0.5;
display: inline-block !important;
}
li.active span.utils .delete img { margin: 14px; }
}
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 */
#newuser .multiselect {
min-width: 150px !important;
UserManagementFilter.prototype.getPattern = function() {
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();
+ });
+};
\ No newline at end of file
// Implements User Search
filter = new UserManagementFilter(
$('#usersearchform input'), UserList, GroupList);
+ filter.addResetButton($('.userFilterReset').first());
UserList.doSort();
UserList.availableGroups = $('#content table').data('groups');
</div>
<?php endif; ?>
<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>
</div>
\ No newline at end of file