Fix selection

Tweak to allow the shift + click behaviour for the checkboxes while still letting the browser behaviour work
This commit is contained in:
loopback0
2017-01-03 20:18:35 +00:00
committed by GitHub
parent 949b4aaa1f
commit a86134cc5b

View File

@@ -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;
});
});