mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
form name can be passed to printFineUploaderJs()
This commit is contained in:
parent
3aec4761c9
commit
d6ff82ccb8
|
@ -2718,7 +2718,7 @@ $('body').on('click', '[id^=\"table-row-folder\"] td:nth-child(2)', function(ev)
|
|||
* @param integer $maxfiles maximum number of files allowed to upload
|
||||
* @param array $fields list of post fields
|
||||
*/
|
||||
function printFineUploaderJs($uploadurl, $partsize=0, $maxuploadsize=0, $multiple=true, $prefix='userfile') { /* {{{ */
|
||||
function printFineUploaderJs($uploadurl, $partsize=0, $maxuploadsize=0, $multiple=true, $prefix='userfile', $formname='form1') { /* {{{ */
|
||||
?>
|
||||
$(document).ready(function() {
|
||||
<?php echo $prefix; ?>uploader = new qq.FineUploader({
|
||||
|
@ -2757,7 +2757,7 @@ $(document).ready(function() {
|
|||
$('#<?php echo $prefix; ?>-fine-uploader-names').val(names.join(';'));
|
||||
/* Run upload only if all files could be uploaded */
|
||||
if(succeeded.length > 0 && failed.length == 0)
|
||||
document.getElementById('form1').submit();
|
||||
document.getElementById('<?= $formname ?>').submit();
|
||||
},
|
||||
onError: function(id, name, reason, xhr) {
|
||||
noty({
|
||||
|
|
Loading…
Reference in New Issue
Block a user