Make fallback as simple and fast as possible.

This commit is contained in:
Lars Jung 2014-05-29 14:10:34 +02:00
parent 844b37d165
commit 6eae9a7114
2 changed files with 3 additions and 6 deletions

View File

@ -8,8 +8,8 @@ modulejs.define('core/resource', ['core/settings'], function (settings) {
icon = function (id) {
return settings.h5aiAbsHref + 'client/themes/faenza/icons/' + id + '.png';
// return settings.h5aiAbsHref + 'client/themes/evolvere/icons/' + id + '.svg';
// return settings.h5aiAbsHref + 'client/themes/faenza/icons/' + id + '.png';
return settings.h5aiAbsHref + 'client/themes/evolvere/icons/' + id + '.svg';
};
return {

View File

@ -182,10 +182,7 @@ class App {
}
foreach ($items as $item) {
$type = "file";
if ($item->is_folder) {
$type = $this->is_managed_url($item->url) ? "folder" : "folder-page";
}
$type = $item->is_folder ? "folder" : "file";
$html .= "<tr>";
$html .= "<td class='fb-i'><img src='" . APP_URL . "client/images/fallback/" . $type . ".png' alt='" . $type . "'/></td>";