From c4da5d4f670ecb46f529e53ed6b1e0f439447bc6 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 29 Dec 2016 22:56:22 +0000 Subject: [PATCH] select multiple with ctrl key Former-commit-id: 0f774b3358e8a9d12f1d8cd7ad3fada121d5b5f3 --- _embed/public/js/application.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_embed/public/js/application.js b/_embed/public/js/application.js index 6f46e43f..b75f20e4 100644 --- a/_embed/public/js/application.js +++ b/_embed/public/js/application.js @@ -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 {