Browse Source

upload is bar, not panel

Namdak Tonpa 8 years ago
parent
commit
2794ba6181
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/elements/element_upload.erl

+ 1 - 1
src/elements/element_upload.erl

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