mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 23:42:11 +00:00
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:
parent
c9d01565ba
commit
76a53703a2
|
@ -110,7 +110,7 @@ $(document).ready(function() {
|
|||
alternatives: $('#dropfolderfileform1')
|
||||
},
|
||||
dropfolderfileform1: {
|
||||
alternatives: $(".btn-file input")
|
||||
alternatives: $("#userfile") //$(".btn-file input")
|
||||
}
|
||||
<?php
|
||||
}
|
||||
|
|
|
@ -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").'… <input _id="'.$id.'" type="file" name="'.$varname.'"'.($multiple ? " multiple" : "").($accept ? ' accept="'.$accept.'"' : "").'">
|
||||
'.getMLText("browse").'… <input id="'.$id.'" type="file" name="'.$varname.'"'.($multiple ? " multiple" : "").($accept ? ' accept="'.$accept.'"' : "").'">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user