diff --git a/_assets/js/common.js b/_assets/js/common.js index 76cae2a3..b95d21c7 100644 --- a/_assets/js/common.js +++ b/_assets/js/common.js @@ -285,23 +285,6 @@ function logoutEvent (event) { } } -function openEvent (event) { - if (event.currentTarget.classList.contains('disabled')) { - return false - } - - let link = '?raw=true' - - if (selectedItems.length) { - link = document.getElementById(selectedItems[0]).dataset.url + link - } else { - link = window.location.pathname + link - } - - window.open(link) - return false -} - function getHash (event, hash) { event.preventDefault() @@ -624,14 +607,12 @@ document.addEventListener('DOMContentLoaded', function (event) { clickOverlay = document.querySelector('#click-overlay') buttons.logout = document.getElementById('logout') - buttons.open = document.getElementById('open') buttons.delete = document.getElementById('delete') buttons.previous = document.getElementById('previous') buttons.info = document.getElementById('info') // Attach event listeners buttons.logout.addEventListener('click', logoutEvent) - buttons.open.addEventListener('click', openEvent) buttons.info.addEventListener('click', infoEvent) templates.question = document.querySelector('#question-template') diff --git a/_assets/templates/templates.tmpl b/_assets/templates/templates.tmpl index 33bbabb5..a0910314 100644 --- a/_assets/templates/templates.tmpl +++ b/_assets/templates/templates.tmpl @@ -15,7 +15,7 @@

File Information

Display Name:

-

Content Length: Bytes

+

Size: Bytes

Last Modified: