Browse files

trimming search term

  • Loading branch information...
1 parent d7bd6d7 commit 48c3ea3f4f0d343c414cdc15fa8c77ad3ad344b4 @nodecarter nodecarter committed Apr 4, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 assets/javascripts/appendable_observe_searchfield.js
View
4 assets/javascripts/appendable_observe_searchfield.js
@@ -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);
}
-}
+}

0 comments on commit 48c3ea3

Please sign in to comment.