Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Renamed icons with leading dot #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/class/browser.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ protected function sendDefaultThumb($file=null) {
$thumb = "themes/{$this->config['theme']}/img/files/big/$ext.png";
}
if (!isset($thumb) || !file_exists($thumb))
$thumb = "themes/{$this->config['theme']}/img/files/big/..png";
$thumb = "themes/{$this->config['theme']}/img/files/big/_.png";
header("Content-Type: image/png");
readfile($thumb);
die;
Expand Down
6 changes: 3 additions & 3 deletions js/080.files.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ _.showFiles = function(callBack, selected) {

icon = $.$.getFileExtension(file.name);
if (file.thumb)
icon = ".image";
icon = "_image";
else if (!icon.length || !file.smallIcon)
icon = ".";
icon = "_";
icon = "themes/" + _.theme + "/img/files/small/" + icon + ".png";

f = $('<tr class="file"><td class="name thumb"></td><td class="time"></td><td class="size"></td></tr>');
Expand All @@ -72,7 +72,7 @@ _.showFiles = function(callBack, selected) {
icon = _.uploadURL + "/" + _.dir + "/" + encodeURIComponent(file.name);
icon = $.$.escapeDirs(icon).replace(/\'/g, "%27");
} else {
icon = file.bigIcon ? $.$.getFileExtension(file.name) : ".";
icon = file.bigIcon ? $.$.getFileExtension(file.name) : "_";
if (!icon.length) icon = ".";
icon = "themes/" + _.theme + "/img/files/big/" + icon + ".png";
}
Expand Down
6 changes: 3 additions & 3 deletions js/091.menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ _.openClipboard = function() {
$.each(_.clipboard, function(i, val) {
var icon = $.$.getFileExtension(val.name);
if (val.thumb)
icon = ".image";
icon = "_image";
else if (!val.smallIcon || !icon.length)
icon = ".";
icon = "_";
icon = "themes/" + _.theme + "/img/files/small/" + icon + ".png";
html += '<a title="' + _.label("Click to remove from the Clipboard") + '" onclick="_.removeFromClipboard(' + i + ')"' + ((i == 0) ? ' class="first"' : "") + '><span style="background-image:url(' + $.$.escapeDirs(icon) + ')">' + $.$.htmlData($.$.basename(val.name)) + '</span></a>';
});
Expand Down Expand Up @@ -586,4 +586,4 @@ _.openClipboard = function() {
}).width(dlg.width() + _.scrollbarWidth);
}
}, 1);
};
};