- >
-
jQuery(document).ready(function() {
if(jQuery().uploadify) {
$('#uploadify').uploadify({
'debug' : ". $debug . ",
'buttonText' : '". i18n_r('UPLOADIFY_BUTTON') ."',
'buttonCursor' : 'pointer',
'uploader' : 'upload-uploadify.php',
'swf' : 'template/js/uploadify/uploadify.swf',
'multi' : true,
'auto' : true,
'height' : '25',
'width' : '100%',
'requeueErrors' : false,
'fileSizeLimit' : '".$fileSizeLimit."', // expects input in kb
'cancelImage' : 'template/images/cancel.png',
'checkExisting' : 'uploadify-check-exists.php?path=".$path."',
'postData' : {
'sessionHash' : '". $SESSIONHASH ."',
'path' : '". $path ."'
},
onUploadProgress: function() {
$('#loader').show();
},
onUploadComplete: function() {
$('#loader').fadeOut(500);
$('#maincontent').load(location.href+' #maincontent > *');
},
onSelectError: function(file,errorCode,errorMsg) {
notifyError('Uploadify: ' + file.name + '
Error ' + errorCode +':'+errorMsg).popit().removeit();
},
onUploadSuccess: function(file,data,response) {
if(data != 1){
notifyError('Uploadify:' + data + ' ('+file.name+')').popit().removeit();
jQuery('#' + file.id).addClass('uploadifyError');
jQuery('#' + file.id).find('.uploadifyProgressBar').css('width','1px');
jQuery('#' + file.id).find('.data').html(' - ' + 'Failed');
}
},
onUploadError: function(file,errorCode,errorMsg, errorString) {
notifyError('Uploadify: ' + errorMsg).popit().removeit();
}
});
}
});
";
?>
- : MB