Fix selection

Tweak to allow the shift + click behaviour for the checkboxes while still letting the browser behaviour work
v1.18.x
loopback0 8 years ago committed by GitHub
parent 949b4aaa1f
commit a86134cc5b

@ -10,9 +10,9 @@ define('topicSelect', ['components'], function (components) {
TopicSelect.init = function (onSelect) {
topicsContainer = $('[component="category"]');
topicsContainer.on('selectstart', function () {
return false;
});
topicsContainer.on('selectstart', '[component="topic/select"]', function (ev) {
ev.preventDefault();
});
topicsContainer.on('click', '[component="topic/select"]', function (ev) {
var select = $(this);
@ -82,4 +82,4 @@ define('topicSelect', ['components'], function (components) {
}
return TopicSelect;
});
});

Loading…
Cancel
Save