mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
remove raw view
Former-commit-id: 25d9b397bdf2a8d7aa1acea6205c6edf9f2cc520 [formerly d7ca15dc452a36022aca29c72d0526318a3f40ee] [formerly f1358b8ce40ffecf5d81bf7a71ad4e2afa0063cd [formerly 092eac0575
]]
Former-commit-id: ee48d4374d4735692eb3a1555a23ab3aa7b21572 [formerly aa890e47043adae2419942219c42dd6ba23fbd02]
Former-commit-id: e0016c5a98b941755f4e4442c16584523bea2408
This commit is contained in:
parent
55f843886a
commit
ab37e6556d
@ -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) {
|
function getHash (event, hash) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
|
||||||
@ -624,14 +607,12 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
|||||||
clickOverlay = document.querySelector('#click-overlay')
|
clickOverlay = document.querySelector('#click-overlay')
|
||||||
|
|
||||||
buttons.logout = document.getElementById('logout')
|
buttons.logout = document.getElementById('logout')
|
||||||
buttons.open = document.getElementById('open')
|
|
||||||
buttons.delete = document.getElementById('delete')
|
buttons.delete = document.getElementById('delete')
|
||||||
buttons.previous = document.getElementById('previous')
|
buttons.previous = document.getElementById('previous')
|
||||||
buttons.info = document.getElementById('info')
|
buttons.info = document.getElementById('info')
|
||||||
|
|
||||||
// Attach event listeners
|
// Attach event listeners
|
||||||
buttons.logout.addEventListener('click', logoutEvent)
|
buttons.logout.addEventListener('click', logoutEvent)
|
||||||
buttons.open.addEventListener('click', openEvent)
|
|
||||||
buttons.info.addEventListener('click', infoEvent)
|
buttons.info.addEventListener('click', infoEvent)
|
||||||
|
|
||||||
templates.question = document.querySelector('#question-template')
|
templates.question = document.querySelector('#question-template')
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="prompt">
|
<div class="prompt">
|
||||||
<h3>File Information</h3>
|
<h3>File Information</h3>
|
||||||
<p><strong>Display Name:</strong> <span id="display_name"></span></p>
|
<p><strong>Display Name:</strong> <span id="display_name"></span></p>
|
||||||
<p><strong>Content Length:</strong> <span id="content_length"></span> Bytes</p>
|
<p><strong>Size:</strong> <span id="content_length"></span> Bytes</p>
|
||||||
<p><strong>Last Modified:</strong> <span id="last_modified"></span></p>
|
<p><strong>Last Modified:</strong> <span id="last_modified"></span></p>
|
||||||
|
|
||||||
<section class="file-only">
|
<section class="file-only">
|
||||||
|
Loading…
Reference in New Issue
Block a user