set id=userfile for upload file field again

required for form validation. Using .btn-file as before is not
unique and validation fails if there is another input form field
This commit is contained in:
Uwe Steinmann 2017-09-27 06:56:58 +02:00
parent c9d01565ba
commit 76a53703a2
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ $(document).ready(function() {
alternatives: $('#dropfolderfileform1')
},
dropfolderfileform1: {
alternatives: $(".btn-file input")
alternatives: $("#userfile") //$(".btn-file input")
}
<?php
}

View File

@ -902,7 +902,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
<div class="input-append">
<input type="text" class="form-control" readonly>
<span class="btn btn-default btn-file">
'.getMLText("browse").'&hellip; <input _id="'.$id.'" type="file" name="'.$varname.'"'.($multiple ? " multiple" : "").($accept ? ' accept="'.$accept.'"' : "").'">
'.getMLText("browse").'&hellip; <input id="'.$id.'" type="file" name="'.$varname.'"'.($multiple ? " multiple" : "").($accept ? ' accept="'.$accept.'"' : "").'">
</span>
</div>
</div>