Skip to content

Commit

Permalink
Fixed issue #06211: Problems with two "file upload" question types in…
Browse files Browse the repository at this point in the history
… the same question group
  • Loading branch information
TMSWhite committed Jun 19, 2012
1 parent 9e80a50 commit 6180af8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/modaldialog.js
Expand Up @@ -66,6 +66,11 @@ $(document).ready(function() {
}else{
/*IE6*/ pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
if (pass) {
$('iframe#uploader').remove();
$(this).dialog('destroy');
checkconditions();
}
return true;

},
Expand Down Expand Up @@ -100,6 +105,11 @@ $(document).ready(function() {
}else{ /*IE6*/
pass=document.getElementById('uploader').contentWindow.saveAndExit(fieldname,show_title,show_comment,pos);
}
if (pass) {
$('iframe#uploader').remove();
$(this).dialog('destroy');
checkconditions();
}
return pass;
},
overlay: {
Expand Down

0 comments on commit 6180af8

Please sign in to comment.