summaryrefslogtreecommitdiffstats
path: root/settings/js/users
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-04-02 22:00:25 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-06-02 12:53:55 +0200
commit8df50acce78e56518131a5905ae45b1a3fb0f821 (patch)
tree6f172d5e97b7c2d4d9a619e98e81cacecf289ca2 /settings/js/users
parent68dc665c65d5cac1b3b99831d011819570ecf62a (diff)
downloadnextcloud-server-8df50acce78e56518131a5905ae45b1a3fb0f821.tar.gz
nextcloud-server-8df50acce78e56518131a5905ae45b1a3fb0f821.zip
some documentation
Diffstat (limited to 'settings/js/users')
-rw-r--r--settings/js/users/filter.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/settings/js/users/filter.js b/settings/js/users/filter.js
index 134ca47a7d1..493ce991732 100644
--- a/settings/js/users/filter.js
+++ b/settings/js/users/filter.js
@@ -5,8 +5,10 @@
*/
/**
- * @brief foobar
+ * @brief this object takes care of the filter funcationality on the user
+ * management page
* @param jQuery input element that works as the user text input field
+ * @param object the UserList object
*/
function UserManagementFilter(filterInput, userList) {
this.filterInput = filterInput;
@@ -16,6 +18,9 @@ function UserManagementFilter(filterInput, userList) {
this.init();
}
+/**
+ * @brief sets up when the filter action shall be triggered
+ */
UserManagementFilter.prototype.init = function() {
umf = this;
this.filterInput.keyup(function() {
@@ -29,11 +34,19 @@ UserManagementFilter.prototype.init = function() {
});
}
+/**
+ * @brief the filter action needs to be done, here the accurate steps are being
+ * taken care of
+ */
UserManagementFilter.prototype.run = function() {
this.userList.empty();
this.userList.update();
}
+/**
+ * @brief returns the filter String
+ * @returns string
+ */
UserManagementFilter.prototype.getPattern = function() {
return this.filterInput.val();
} \ No newline at end of file