mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +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 integer $maxfiles maximum number of files allowed to upload
|
||||||
* @param array $fields list of post fields
|
* @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() {
|
$(document).ready(function() {
|
||||||
<?php echo $prefix; ?>uploader = new qq.FineUploader({
|
<?php echo $prefix; ?>uploader = new qq.FineUploader({
|
||||||
|
@ -2757,7 +2757,7 @@ $(document).ready(function() {
|
||||||
$('#<?php echo $prefix; ?>-fine-uploader-names').val(names.join(';'));
|
$('#<?php echo $prefix; ?>-fine-uploader-names').val(names.join(';'));
|
||||||
/* Run upload only if all files could be uploaded */
|
/* Run upload only if all files could be uploaded */
|
||||||
if(succeeded.length > 0 && failed.length == 0)
|
if(succeeded.length > 0 && failed.length == 0)
|
||||||
document.getElementById('form1').submit();
|
document.getElementById('<?= $formname ?>').submit();
|
||||||
},
|
},
|
||||||
onError: function(id, name, reason, xhr) {
|
onError: function(id, name, reason, xhr) {
|
||||||
noty({
|
noty({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user