mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-01 15:58:19 -04:00
Update type system.
This commit is contained in:
parent
26eb27eae3
commit
1660227a54
24 changed files with 288 additions and 617 deletions
|
@ -4,7 +4,7 @@ modulejs.define('core/resource', ['config', 'core/settings'], function (config,
|
|||
var imagesHref = settings.appHref + 'client/images/',
|
||||
fallbackHref = settings.appHref + 'client/images/fallback/',
|
||||
themesHref = settings.appHref + 'client/themes/',
|
||||
fallbacks = ['file', 'folder', 'folder-page', 'folder-parent'],
|
||||
fallbacks = ['file', 'folder', 'folder-page', 'folder-parent', 'ar', 'aud', 'img', 'txt', 'vid'],
|
||||
|
||||
image = function (id) {
|
||||
|
||||
|
@ -23,6 +23,11 @@ modulejs.define('core/resource', ['config', 'core/settings'], function (config,
|
|||
if (fallbacks.indexOf(id) >= 0) {
|
||||
return fallbackHref + id + '.svg';
|
||||
}
|
||||
|
||||
if (fallbacks.indexOf(baseId) >= 0) {
|
||||
return fallbackHref + baseId + '.svg';
|
||||
}
|
||||
|
||||
return fallbackHref + 'file.svg';
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue