Sha256: 7a69363c5935ef8460d2ef2c60f2a33d2827f27c02596013ccde7d3c0b328544
Contents?: true
Size: 1.28 KB
Versions: 9
Compression:
Stored size: 1.28 KB
Contents
window.quicksearchConfig = { init: { selectableHeader: "<input type='text' style='margin-bottom: 1rem' class='input search-input' autocomplete='off' placeholder='Search...'>", selectionHeader: "<input type='text' style='margin-bottom: 1rem' class='input search-input' autocomplete='off' placeholder='Search...'>", afterInit: function(ms){ var that = this, $selectableSearch = that.$selectableUl.prev(), $selectionSearch = that.$selectionUl.prev(), selectableSearchString = '#'+that.$container.attr('id')+' .ms-elem-selectable:not(.ms-selected)', selectionSearchString = '#'+that.$container.attr('id')+' .ms-elem-selection.ms-selected'; that.qs1 = $selectableSearch.quicksearch(selectableSearchString) .on('keydown', function(e){ if (e.which === 40){ that.$selectableUl.focus(); return false; } }); that.qs2 = $selectionSearch.quicksearch(selectionSearchString) .on('keydown', function(e){ if (e.which == 40){ that.$selectionUl.focus(); return false; } }); }, afterSelect: function(){ this.qs1.cache(); this.qs2.cache(); }, afterDeselect: function(){ this.qs1.cache(); this.qs2.cache(); } } }
Version data entries
9 entries across 9 versions & 1 rubygems