修复新建问题中autocomplete在Firefox下的不正常

This commit is contained in:
ganyiang 2014-05-08 12:18:05 +08:00
parent 786481e144
commit 5e780e6872
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ function observeAutocompleteField(fieldId, url, options) {
$(document).ready(function() { $(document).ready(function() {
$('#'+fieldId).autocomplete($.extend({ $('#'+fieldId).autocomplete($.extend({
source: url, source: url,
select: function(e,ui){location.href("/issues/"+ui.item.value);}, select: function(e,ui){self.location="/issues/"+ui.item.value;},
minLength: 2, minLength: 2,
search: function(){$('#'+fieldId).addClass('ajax-loading');}, search: function(){$('#'+fieldId).addClass('ajax-loading');},
response: function(){$('#'+fieldId).removeClass('ajax-loading'); response: function(){$('#'+fieldId).removeClass('ajax-loading');