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

Commit

Permalink
Renamed icons with leading dot
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Jun 6, 2015
1 parent b645d2a commit f92fb8b
Show file tree
Hide file tree
Showing 11 changed files with 7 additions and 7 deletions.
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);
};
};
File renamed without changes
File renamed without changes
File renamed without changes

0 comments on commit f92fb8b

Please sign in to comment.