diff options
-rwxr-xr-x | usr/local/www/edit.php | 2 | ||||
-rw-r--r-- | usr/local/www/filebrowser/browser.js | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 03e7688..a0ea694 100755 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -115,9 +115,9 @@ outputJavaScriptFileInline("filebrowser/browser.js"); } } else { + new Effect.Appear("fileContent"); $("fileStatus").innerHTML = values[0]; $("fileContent").value = ""; - new Effect.Appear("fileContent"); } } diff --git a/usr/local/www/filebrowser/browser.js b/usr/local/www/filebrowser/browser.js index ab5912f..751b89e 100644 --- a/usr/local/www/filebrowser/browser.js +++ b/usr/local/www/filebrowser/browser.js @@ -12,6 +12,8 @@ Event.observe( ); function fbBrowse(path) { + new Effect.Fade("fileContent"); + if($("fbCurrentDir")) $("fbCurrentDir").innerHTML = "Loading ..."; @@ -19,7 +21,7 @@ function fbBrowse(path) { "/filebrowser/browser.php?path=" + encodeURI(path ? path : "/"), { method: "get", onComplete: fbComplete } ); - new Effect.Fade("fileContent"); + } function fbComplete(req) { |