|
@@ -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);"),
|