Finish new style
This commit is contained in:
@@ -42,12 +42,14 @@ var Viewer = {
|
||||
this.currentFile = file.id;
|
||||
var title = "";
|
||||
if (this.isList) {
|
||||
title = this.title + " ~ " + file.name;
|
||||
document.getElementById("file_viewer_headerbar_title").style.lineHeight = "1em";
|
||||
document.getElementById("file_viewer_list_title").innerText = this.title;
|
||||
document.getElementById("file_viewer_file_title").innerText = file.name;
|
||||
document.title = this.title + " ~ " + file.name + " ~ PixelDrain";
|
||||
} else {
|
||||
title = file.name;
|
||||
document.getElementById("file_viewer_file_title").innerText = file.name;
|
||||
document.title = file.name + " ~ PixelDrain";
|
||||
}
|
||||
document.title = title + " ~ PixelDrain";
|
||||
document.getElementById("file_viewer_headerbar_title").innerText = title;
|
||||
|
||||
$.get("/u/" + file.id + "/preview", function(response){
|
||||
$("#filepreview").html(response);
|
||||
|
@@ -151,11 +151,6 @@ document.addEventListener('drop', function (e) {
|
||||
handleUploads(e.dataTransfer.files);
|
||||
}
|
||||
});
|
||||
// Style selector
|
||||
$("input[name=style]").change(function (evt) {
|
||||
Cookie.write("style", evt.target.id.substring(6));
|
||||
location.reload();
|
||||
});
|
||||
function copyText(text) {
|
||||
// Create a textarea to copy the text from
|
||||
var ta = document.createElement("textarea");
|
||||
|
Reference in New Issue
Block a user