Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

trimming search term

  • Loading branch information...
commit 48c3ea3f4f0d343c414cdc15fa8c77ad3ad344b4 1 parent d7bd6d7
Danil nodecarter authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 assets/javascripts/appendable_observe_searchfield.js
4 assets/javascripts/appendable_observe_searchfield.js
View
@@ -9,7 +9,7 @@ function appendableObserveSearchfield(fieldId, targetId, url, fieldName) {
$.ajax({
url: url,
type: 'get',
- data: {q: $this.val()},
+ data: {q: $this.val().trim()},
success: function(data){
var $target = $('#'+targetId)
.addClass('show')
@@ -71,4 +71,4 @@ function groupWatchers (containerId, columnsNum) {
};
$column.appendTo($container);
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.