summaryrefslogtreecommitdiffstats
path: root/public/javascripts/application.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r--public/javascripts/application.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 5a0627644..90d651acb 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -481,7 +481,7 @@ function observeSearchfield(fieldId, targetId, url) {
url: url,
type: 'get',
data: {q: $this.val()},
- success: function(data){ $('#'+targetId).html(data); },
+ success: function(data){ if(targetId) $('#'+targetId).html(data); },
beforeSend: function(){ $this.addClass('ajax-loading'); },
complete: function(){ $this.removeClass('ajax-loading'); }
});