mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-11 07:55:55 +01:00
Merge pull request #1765 from reap3r119/fix-proposals
Fix user proposals and update typeahead
This commit is contained in:
@@ -17,6 +17,12 @@ $(function(){
|
||||
function (data) {
|
||||
return process(data.options);
|
||||
});
|
||||
},
|
||||
displayText: function(item) {
|
||||
return item.label;
|
||||
},
|
||||
afterSelect: function(item) {
|
||||
$('#@id').val(item.value);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -398,7 +398,7 @@
|
||||
|
||||
prev.addClass('active');
|
||||
// added for screen reader
|
||||
var newVal = this.updater(next.data('value'));
|
||||
var newVal = this.updater(prev.data('value'));
|
||||
this.$element.val(this.displayText(newVal) || newVal);
|
||||
},
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user