remove close button

This commit is contained in:
2020-02-25 00:26:31 +01:00
parent 6810165968
commit b4524ded62
2 changed files with 0 additions and 13 deletions

View File

@@ -25,12 +25,6 @@ function Viewer(type, viewToken, data) {
this.toolbar.toggle()
}
// The close button only works if the window has an opener. So we hide
// the button if it does not
if (window.opener === null && window.history.length !== 1) {
document.getElementById("button_close_file_viewer").remove()
}
if (type === "file") {
this.isFile = true
this.title = data.name

View File

@@ -30,9 +30,6 @@
<div id="file_viewer_list_title"></div>
<div id="file_viewer_file_title">{{.Title}}</div>
</div>
<button id="button_close_file_viewer" class="button_close_file_viewer button_red" onclick="window.close();">
<i class="icon small">close</i>
</button>
</div>
<div id="list_navigator" class="list_navigator"></div>
<div id="file_viewer_window" class="file_viewer_window">
@@ -74,10 +71,6 @@
</button>
{{template "advertisement" .}}
<a href="https://twitter.com/SiaTechHQ/status/1228050383685201921">
<img src="/res/img/misc/terminator.png" style="width: 100%; margin-top: 1000px; display: block;" />
</a>
<!-- This frame will load the download URL when a download button is pressed -->
<iframe id="download_frame" style="display: none; width: 1px; height: 1px;"></iframe>
</div></div></div>