Commit 86fee407 authored by Yaroslav Lushnikov's avatar Yaroslav Lushnikov 🦆

Add key to open select

Add release
parent 70814f77
(function($) {
$('#project_quick_jump_box').select2().change(function () {
var element = $('#project_quick_jump_box');
element.select2().change(function () {
this.value ? (window.location = this.value) : '';
});
$(':not(input):not(textarea)').keypress(function(e) {
if (e.target.tagName != 'INPUT' && e.target.tagName != 'TEXTAREA') {
if (e.charCode == 102 || e.charCode == 1072) {
element.select2('open');
}
}
});
})(jQuery);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment