summaryrefslogtreecommitdiffstats
path: root/js/application.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/application.js')
-rw-r--r--js/application.js16
1 files changed, 13 insertions, 3 deletions
diff --git a/js/application.js b/js/application.js
index ab47ff1..a455d46 100644
--- a/js/application.js
+++ b/js/application.js
@@ -8,10 +8,11 @@
});
$('#searchable').multiSelect({
- selectableHeader: "<input type='text' id='search' autocomplete='off' placeholder='try \"elem 2\"'>"
+ selectableHeader: "<input type='text' id='search1' autocomplete='off' placeholder='try \"elem 2\"'>",
+ selectionHeader: "<input type='text' id='search2' autocomplete='off' placeholder='try \"elem 2\"'>"
});
- $('#search').quicksearch($('.ms-elem-selectable', '#ms-searchable' )).on('keydown', function(e){
+ $('#search1').quicksearch($('.ms-elem-selectable', '#ms-searchable' )).on('keydown', function(e){
if (e.keyCode == 40){
$(this).trigger('focusout');
$('#searchable').focus();
@@ -19,6 +20,15 @@
}
});
+ $('#search2').quicksearch($('.ms-elem-selection', '#ms-searchable' )).on('keydown', function(e){
+ if (e.keyCode == 40){
+ $(this).trigger('focusout');
+ console.log('focus selection')
+ $('.ms-selection', '#searchable').focus();
+ return false;
+ }
+ });
+
$('#optgroup').multiSelect({
selectableOptgroup: true
@@ -64,7 +74,7 @@
}
$('#select-100').click(function(){
- $('#public-methods').multiSelect('select', arr);
+ $('#public-methods').multiSelect('select', 1);
return false;
});
$('#deselect-100').click(function(){