mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
make refresh more robust to errors
This commit is contained in:
parent
14f6a65ea5
commit
32db4ea7e5
@ -35,6 +35,10 @@ define(function(require, exports, module) {
|
||||
cb && cb(err, files);
|
||||
});
|
||||
};
|
||||
model.shouldLoadChildren = function(node, ch) {
|
||||
return node.status == "pending"
|
||||
|| (node.path && node.isFolder && !ch);
|
||||
};
|
||||
model.getClassName = function(node) {
|
||||
var cl = node.className || "";
|
||||
if (node.link)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user