function startUploadForumFile(id){ $('#errDimension'+id).hide(); $('#errFormat'+id).hide(); $('#filesErr').html(''); $('#uploadFileNow').html(svgLoader); return true; } function stopUploadForumFile(file, filename, success, id, label){ i=label; //brak pliku lub etykiety if (success == 0){ if(label!=''){ $('#filesErr').html(label); } else { $('#'+id).parent('li').fadeOut(500, function(){$(this).remove()}); } } //wszystko ok if (success == 1){ $('#files').append('
'); $('.FilesNew'+id).fadeIn(1000); $('#filesErr').html(''); } //nieprawidlowy typ pliku if (success == 3){ $('#filesErr').html('