Browse Source

Fix for autostart option in ftp.js

Andy 9 years ago
parent
commit
e9b9a207c2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/elements/element_upload.erl

+ 2 - 2
src/elements/element_upload.erl

@@ -7,9 +7,9 @@ render_element(#upload{id=Id} = U) ->
     bind(ftp_open,  click,  "qi('upload').click(); e.preventDefault();"),
     bind(ftp_start, click,  "ftp.start();"),
     bind(ftp_stop,  click,  "ftp.stop();"),
-    bind(nitro:to_atom(Uid), change, "ftp.init(this.files[0],1);"),
+    bind(nitro:to_atom(Uid), change, "ftp.init(this.files[0],false);"),
     Upload = #panel  { body = [
-             #input  { id   = Uid,         type    = <<"file">>, style = "display:none" },
+             #input  { id   = Uid,         type    = <<"file">>, style = "display:block" },
              #span   { id   = ftp_status,  body    = [] },
              #span   { body = [
              #button { id   = ftp_open,    body = "Browse" },