]> source.dussan.org Git - nextcloud-server.git/commitdiff
some documentation
authorArthur Schiwon <blizzz@owncloud.com>
Wed, 2 Apr 2014 20:00:25 +0000 (22:00 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Mon, 2 Jun 2014 10:53:55 +0000 (12:53 +0200)
settings/js/users/filter.js

index 134ca47a7d18614aeaf522c16ffc1de1e5ac593e..493ce9917320797dade0385c86fa748bd933be5d 100644 (file)
@@ -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