From ab37e6556d70098b48315e0c7415fa0e0b53b412 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 26 Jun 2017 17:37:03 +0100 Subject: [PATCH] remove raw view Former-commit-id: 25d9b397bdf2a8d7aa1acea6205c6edf9f2cc520 [formerly d7ca15dc452a36022aca29c72d0526318a3f40ee] [formerly f1358b8ce40ffecf5d81bf7a71ad4e2afa0063cd [formerly 092eac05758dec996b91ac6980654cd2e9f01549]] Former-commit-id: ee48d4374d4735692eb3a1555a23ab3aa7b21572 [formerly aa890e47043adae2419942219c42dd6ba23fbd02] Former-commit-id: e0016c5a98b941755f4e4442c16584523bea2408 --- _assets/js/common.js | 19 ------------------- _assets/templates/templates.tmpl | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) 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: