mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 20:44:53 -04:00
Make fallback as simple and fast as possible.
This commit is contained in:
parent
844b37d165
commit
6eae9a7114
2 changed files with 3 additions and 6 deletions
|
@ -8,8 +8,8 @@ modulejs.define('core/resource', ['core/settings'], function (settings) {
|
||||||
|
|
||||||
icon = function (id) {
|
icon = function (id) {
|
||||||
|
|
||||||
return settings.h5aiAbsHref + 'client/themes/faenza/icons/' + id + '.png';
|
// return settings.h5aiAbsHref + 'client/themes/faenza/icons/' + id + '.png';
|
||||||
// return settings.h5aiAbsHref + 'client/themes/evolvere/icons/' + id + '.svg';
|
return settings.h5aiAbsHref + 'client/themes/evolvere/icons/' + id + '.svg';
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -182,10 +182,7 @@ class App {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$type = "file";
|
$type = $item->is_folder ? "folder" : "file";
|
||||||
if ($item->is_folder) {
|
|
||||||
$type = $this->is_managed_url($item->url) ? "folder" : "folder-page";
|
|
||||||
}
|
|
||||||
|
|
||||||
$html .= "<tr>";
|
$html .= "<tr>";
|
||||||
$html .= "<td class='fb-i'><img src='" . APP_URL . "client/images/fallback/" . $type . ".png' alt='" . $type . "'/></td>";
|
$html .= "<td class='fb-i'><img src='" . APP_URL . "client/images/fallback/" . $type . ".png' alt='" . $type . "'/></td>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue