Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
6ad1e408
Commit
6ad1e408
authored
Sep 29, 2011
by
Falko Timme
Browse files
- Remove hidden iframe after file upload.
parent
272aecd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/js/scrigo.js.php
View file @
6ad1e408
...
...
@@ -154,15 +154,14 @@ function submitUploadForm(formname,target) {
var frame_id = 'ajaxUploader-iframe-' + Math.round(new Date().getTime() / 1000);
jQuery('body').after('
<iframe
width=
"0"
height=
"0"
style=
"display:none;"
name=
"'+frame_id+'"
id=
"'+frame_id+'"
/>
');
var submitFormObj =
jQuery('input[type="file"]').closest("form").attr({target: frame_id, action: target}).submit();
jQuery('input[type="file"]').closest("form").attr({target: frame_id, action: target}).submit();
jQuery('#'+frame_id).load(function() {
var msg = handleResponse(this);
jQuery('#errorMsg').remove();
jQuery('#OKMsg').remove();
jQuery('input[name="id"]').before(msg);
jQuery(this).remove();
});
//jQuery('#'+frame_id).remove();
/*
if(redirect != '') {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment