Przeglądaj źródła

#3140 The "upload" button should not appear until a file is chosen.

RomanL 5 lat temu
rodzic
commit
f234e132cf
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      template/uploader_form_simple.html

+ 1 - 1
template/uploader_form_simple.html

@@ -11,7 +11,7 @@
 
             <div class="bx-def-padding-sec-bottom" id="__errors_container_id__"></div>
 
-            <div class="bx-uploader-simple-file"><input name="f[]" type="file" /></div>
+            <div class="bx-uploader-simple-file"><input name="f[]" type="file" onchange="$('#__form_container_id__ .bx-btn.bx-btn-primary').show()" /></div>
 
             <div class="bx-uploader-add-more-files"><a href="javascript:void(0);" onclick="$('#__form_container_id__ .bx-uploader-simple-file').first().clone().find('input').val('').end().insertBefore(this)"><bx_text:_sys_uploader_simple_attach_one_more_file /></a></div>