diff --git a/public/javascripts/application.js b/public/javascripts/application.js index b85172660..8e4db7fe6 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -476,7 +476,7 @@ function observeAutocompleteField(fieldId, url, options) { $(document).ready(function() { $('#'+fieldId).autocomplete($.extend({ source: url, - select: function(e,ui){location.href("/issues/"+ui.item.value);}, + select: function(e,ui){self.location="/issues/"+ui.item.value;}, minLength: 2, search: function(){$('#'+fieldId).addClass('ajax-loading');}, response: function(){$('#'+fieldId).removeClass('ajax-loading');