remove close button
This commit is contained in:
@@ -25,12 +25,6 @@ function Viewer(type, viewToken, data) {
|
|||||||
this.toolbar.toggle()
|
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") {
|
if (type === "file") {
|
||||||
this.isFile = true
|
this.isFile = true
|
||||||
this.title = data.name
|
this.title = data.name
|
||||||
|
@@ -30,9 +30,6 @@
|
|||||||
<div id="file_viewer_list_title"></div>
|
<div id="file_viewer_list_title"></div>
|
||||||
<div id="file_viewer_file_title">{{.Title}}</div>
|
<div id="file_viewer_file_title">{{.Title}}</div>
|
||||||
</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>
|
||||||
<div id="list_navigator" class="list_navigator"></div>
|
<div id="list_navigator" class="list_navigator"></div>
|
||||||
<div id="file_viewer_window" class="file_viewer_window">
|
<div id="file_viewer_window" class="file_viewer_window">
|
||||||
@@ -74,10 +71,6 @@
|
|||||||
</button>
|
</button>
|
||||||
{{template "advertisement" .}}
|
{{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 -->
|
<!-- 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>
|
<iframe id="download_frame" style="display: none; width: 1px; height: 1px;"></iframe>
|
||||||
</div></div></div>
|
</div></div></div>
|
||||||
|
Reference in New Issue
Block a user