- Posts: 12
- Thank you received: 3
Ask the community, share ideas, and connect with other LimeSurvey users!
function openUploadModalDialog(){ $('.upload').click(function(e) { e.preventDefault(); var $this = $(this); var show_title = getQueryVariable('show_title', this.href); var show_comment = getQueryVariable('show_comment', this.href); var pos = getQueryVariable('pos', this.href); var fieldname = getQueryVariable('fieldname', this.href); var buttonsOpts = {}; buttonsOpts[uploadLang.returnTxt] = function() { $(this).dialog("close"); }; $('#file-upload-modal-' + fieldname).appendTo('body').modal(); $(document).on('shown.bs.modal','#file-upload-modal-' + fieldname, function() { updateMaxHeightModalbody($(this)); }); $('#file-upload-modal-' + fieldname).on('hide.bs.modal', function() { var pass; var uploaderId = 'uploader' + fieldname; if(document.getElementById(uploaderId).contentDocument) { if(document.getElementById(uploaderId).contentDocument.defaultView) { /*Firefox*/ pass=document.getElementById(uploaderId).contentDocument.defaultView.saveAndExit(fieldname,show_title,show_comment,pos); }else{ /*IE8*/ pass=document.getElementById(uploaderId).contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); } }else{ /*IE6*/ pass=document.getElementById(uploaderId).contentWindow.saveAndExit(fieldname,show_title,show_comment,pos); } return pass; }); }); }
Seems to be an issue : please report.Limuss wrote: I use Limesurvey version 3.17.3+190429