summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/jquery.multi-select.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js
index 933ee09..de63a5f 100644
--- a/js/jquery.multi-select.js
+++ b/js/jquery.multi-select.js
@@ -176,9 +176,9 @@
if (e.keyCode == 32){ // space
var method = keyContainer == 'ms-selectable' ? 'select' : 'deselect';
if (keyContainer == 'ms-selectable'){
- that.select(selectableFocused.first().attr('id'));
+ that.select(selectableFocused.first().attr('id').replace('-selectable', ''));
} else {
- that.deselect(selectableFocused.first().attr('id'));
+ that.deselect(selectableFocused.first().attr('id').replace('-selection', ''));
}
} else if (e.keyCode == 40){ // Down