mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-23 22:10:11 +01:00
Make fallback as simple and fast as possible.
This commit is contained in:
parent
844b37d165
commit
6eae9a7114
@ -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 {
|
||||
|
@ -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>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user