lib/zena/use/upload.rb in zena-0.16.9 vs lib/zena/use/upload.rb in zena-1.0.0.beta1

- old
+ new

@@ -170,10 +170,10 @@ <div id="file" class='toggle_div'>#{link}</div> <div id="upload_field" class='toggle_div' style='display:none;'></div> TXT else attach_file_id, attach_url_id = "af#{@uuid}", "au#{@uuid}" - onchange = %Q{onchange="Zena.get_filename(this,'node_v_title'); $('node_v_title').focus(); $('node_v_title').select();"} + onchange = %Q{onchange="Zena.get_filename(this,'node_title'); $('node_title').focus(); $('node_title').select();"} <<-TXT <div id='#{attach_file_id}' class='attach'><label for='attachment' onclick=\"['#{attach_file_id}', '#{attach_url_id}'].each(Element.toggle);\">#{_('file')} / <span class='off'>#{_('url')}</span></label> <input style='line-height:1.5em;' id="attachment#{@uuid}" name="attachment" #{onchange} class='file' type="file" /></div> <div id='#{attach_url_id}' class='attach' style='display:none;'><label for='url' onclick=\"['#{attach_file_id}', '#{attach_url_id}'].each(Element.toggle);\"><span class='off'>#{_('file')}</span> / #{_('url')}</label> \ No newline at end of file