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