Hello again.
I tested the JavaScript code at your forums-website via adding it with the Chrome Developer Toolbar locally at my client and it is working fine.
Are you sure that the JavaScript file in asgaros-forum/js/script.js was looking like this?:
(function($) {
$(document).ready(function() {
$('a#add_file_link').click(function() {
$('<input type="file" name="forumfile[]" /><br />').insertBefore(this);
});
$('.uploaded-file a.delete').click(function() {
var filename= $(this).attr('filename');
$('.files-to-delete').append('<input type="hidden" name="deletefile[]" value="'+filename+'" />');
$(this).parent().remove();
});
// Disable submit-button after first submit
jQuery.fn.preventDoubleSubmission = function() {
$(this).on('submit', function(e) {
var $form = $(this);
if ($form.data('submitted') === true) {
e.preventDefault();
} else {
$form.data('submitted', true);
}
});
return this;
};
$('#forum-editor-form').preventDoubleSubmission();
});
})(jQuery);
And dont forget to change in includes/views/editor.php from:
<form name="addform" method="post" enctype="multipart/form-data">
To:
<form id="forum-editor-form" name="addform" method="post" enctype="multipart/form-data">