Skip to content

Commit 8d6c4f4

Browse files
authored
fix: trim users search term (#80)
Signed-off-by: romanetar <roman_ag@hotmail.com>
1 parent 00b9a00 commit 8d6c4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/assets/js/admin/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ UsersCrud.prototype = Object.create(BasicCrud.prototype);
6262
UsersCrud.prototype.constructor = UsersCrud;
6363

6464
UsersCrud.prototype._buildFilters = function () {
65-
var term = encodeURIComponent(this.searchTerm);
65+
var term = encodeURIComponent(this.searchTerm.trim());
6666
return 'filter=first_name=@'+term+',last_name=@'+term+',email=@'+term+',full_name=@'+term;
6767
};
6868

0 commit comments

Comments
 (0)