From 5e780e687209bc99fa71ed6b1237200d67e73bd2 Mon Sep 17 00:00:00 2001 From: ganyiang Date: Thu, 8 May 2014 12:18:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E5=BB=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=B8=ADautocomplete=E5=9C=A8Firefox=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E4=B8=8D=E6=AD=A3=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');