Browse Source

fix nitro

Namdak Tonpa 6 years ago
parent
commit
29ecabd40b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/elements/element_upload.erl

+ 1 - 1
src/elements/element_upload.erl

@@ -3,7 +3,7 @@
 -include_lib("nitro/include/nitro.hrl").
 
 render_element(#upload{id=Id}) ->
-    Uid = case Id of undefined -> n2o:temp_id(); I -> I end,
+    Uid = case Id of undefined -> nitro:temp_id(); I -> I end,
     nitro:wire("ftp_file=undefined;"),
     bind(ftp_open,  click,  nitro:f("qi('~s').click(); event.preventDefault();", [nitro:to_list(Uid)])),
     bind(ftp_start, click,  "ftp.start(ftp_file);"),