mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
fix js for duplicating file upload field
This commit is contained in:
parent
b57e91e675
commit
2ddb45fa08
|
@ -45,7 +45,9 @@ class SeedDMS_View_AddDocument extends SeedDMS_Bootstrap_Style {
|
|||
?>
|
||||
$(document).ready(function() {
|
||||
$('#new-file').click(function(event) {
|
||||
$("#userfile-upload-file").clone().appendTo("#userfile-upload-files").removeAttr("id").children('div').children('input').val('');
|
||||
tttttt = $("#userfile-upload-file").clone().appendTo("#userfile-upload-files").removeAttr("id");
|
||||
tttttt.children('div').children('input').val('');
|
||||
tttttt.children('div').children('span').children('input').val('');
|
||||
});
|
||||
jQuery.validator.addMethod("alternatives", function(value, element, params) {
|
||||
if(value == '' && params.val() == '')
|
||||
|
|
Loading…
Reference in New Issue
Block a user