Patch #26395 » focus-selected-project-drdn.patch
| public/javascripts/application.js | ||
|---|---|---|
|
function addFilter(field, operator, values) {
|
||
|
var fieldId = field.replace('.', '_');
|
||
|
var tr = $('#tr_'+fieldId);
|
||
|
|
||
|
var filterOptions = availableFilters[field];
|
||
|
if (!filterOptions) return;
|
||
| ... | ... | |
|
drdn.find(".autocomplete").focus();
|
||
|
}
|
||
|
e.stopPropagation();
|
||
|
$('.drdn-items a.selected').focus();
|
||
|
}
|
||
|
});
|
||
|
$(document).click(function(e){
|
||
|
if ($(e.target).closest(".drdn").length < 1) {
|
||
|
$(".drdn.expanded").removeClass("expanded");
|
||
|
}
|
||
|
}
|
||
|
});
|
||
|
observeSearchfield('projects-quick-search', null, $('#projects-quick-search').data('automcomplete-url'));
|
||