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