select multiple with ctrl key

Former-commit-id: 0f774b3358
pull/726/head
Henrique Dias 2016-12-29 22:56:22 +00:00
parent b6a7d78ce6
commit c4da5d4f67
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 {