el: @$('#select-list-projects')
width: '100%'
readOnly: !@options.app.canEdit
+ focusSearch: false
format: (item) -> item.name
searchUrl: "#{baseUrl}/api/qualitygates/search?gateId=#{@options.gateId}"
selectUrl: "#{baseUrl}/api/qualitygates/select"
var searchInput = this.$('.select-list-search-control input')
.on('keyup', _.debounce(keyup, 250));
- setTimeout(function () {
- searchInput.focus();
- }, 250);
+ if (this.settings.focusSearch) {
+ setTimeout(function () {
+ searchInput.focus();
+ }, 250);
+ }
this.listItemViews = [];
height: 400,
readOnly: false,
+ focusSearch: true,
format: function (item) {
return item.value;