select multiple with ctrl key

pull/144/head
Henrique Dias 2016-12-29 22:56:22 +00:00
parent ebbe370ebb
commit 0f774b3358
1 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,7 @@ var openEvent = function(event) {
}
if (selectedItems.length) {
window.open(selectedItems[0] + '?raw=true');
window.open(document.getElementById(selectedItems[0]).dataset.url + '?raw=true');
return false;
}
@ -692,6 +692,8 @@ function selectItem(event) {
if (selectedItems.length != 0) event.preventDefault();
if (selectedItems.indexOf(el.id) == -1) {
if (!event.ctrlKey) backEvent(event);
el.setAttribute("aria-selected", true);
selectedItems.push(el.id);
} else {