Explorar o código

Fixed File Explorer new folder bug

Toby Chui %!s(int64=2) %!d(string=hai) anos
pai
achega
8eba8aead9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/SystemAO/file_system/file_explorer.html

+ 1 - 1
web/SystemAO/file_system/file_explorer.html

@@ -3197,7 +3197,7 @@
                     $("#newFolder").transition("slide left in");
                 }else{
                     //Create new folder
-                    var newFoldername = $("#createNewFolder").val();
+                    var newFoldername = $("#createNewFolder").val().trim();
                     if (newFoldername == ""){
                         $("#createNewFolder").parent().addClass("error");
                         return;