Browse Source

Added fsh close handler in File Manager

Toby Chui 3 years ago
parent
commit
0087258b13
1 changed files with 7 additions and 0 deletions
  1. 7 0
      web/SystemAO/file_system/file_explorer.html

+ 7 - 0
web/SystemAO/file_system/file_explorer.html

@@ -2466,6 +2466,13 @@
                                     window.location.reload();
                                 });
                                 return;
+                            }else if (data.error == "Unable to resolve target directory"){
+                                //Resolve failed. Back to user:/
+                                var pdir = currentPath.split("/");
+                                pdir = pdir.shift() + "/";
+                                listDirectory(pdir, function(){
+                                    window.location.reload();
+                                });
                             }
                         }
                         callback(data);