It looks like you're new here. If you want to get involved, click one of these buttons!
...if(k.data.queueID){queue="#"+k.data.queueID}a(queue).append('
<div id="'+a(this).attr("id")+i+'" class="uploadifyQueueItem">
<div class="cancel"><a href="javascript:jQuery(\'#'+a(this).attr("id")+"').uploadifyCancel('"+i+'\')"><img src="'+f.cancelImg+'" border="0" /></a></div>
<span class="fileName">
<input class="upload_filename" type="text" placeholder="input the title..." value="'+fileName+'">('+l+m+')
<input class="upload_filedesc" placeholder="input the desc..." type="text" value="">
<input type="checkbox" class="upload_watermark" title="if you want to add watermark..."></span>
<span class="percentage"></span><div class="uploadifyProgress"><div id="'+a(this).attr("id")+i+'ProgressBar" class="uploadifyProgressBar"><!--Progress Bar--></div></div></div>')}});...zh.upload = {
btn_clear: $("#btnCancel"),
btn_upload:$("#btnUpload"),
getType: function() {return $("#selAlbum").val();},
getName: function(q) {return q.find(".upload_filename").val();},
getDesc: function(q) {return q.find(".upload_filedesc").val();},
getLove: function(q) {return q.find(".upload_watermark").attr('checked');},
init: function(o,setting){
o.uploadify({
'uploader' : setting.uploader,
'script' : setting.script,
'cancelImg' : setting.cancelImg,
'multi' : true,
'auto' : false,
'method' : 'GET',
'scriptData' : {'type':'1'},
'buttonText' : '',
'buttonImg' : '',
'fileExt' : '*.jpg;*.gif;*.png',
'fileDesc' : '(.JPG, .GIF, .PNG)',
'queueID' : 'custom-queue',
'queueSizeLimit' : 5,
'simUploadLimit' : 5,
'removeCompleted': false,
//'onInit' : function(){alert('onInit');},
//'onCheck' : function(){alert('onCheck');},
//'onUpload' : function(){alert('onUpload');},
'onOpen' : function(event, queueID, fileObj){
var q = $("#"+o.attr('id')+queueID);
o.uploadifySettings('scriptData',{type:zh.upload.getType(),name:zh.upload.getName(q),desc:zh.upload.getDesc(q)});
},
//'onError' : function(){alert('onError');},
//'onSelect' : function(event, queueID, fileObj) {alert('onSelect');},
'onProgress' : function(event, queueID, fileObj) {alert('onProgress');
//var q = zh.upload.getId(queueID);
//o.uploadifySettings('scriptData',{type:zh.upload.getType(),name:zh.upload.getName(q),desc:zh.upload.getDesc(q),love:zh.upload.getLove(q)});
},
'onCancel' : function(event, queueId, fileObj, data) {zh.upload.chState(data.fileCount);},
'onSelectOnce' : function(event,data) {zh.upload.chState(data.filesSelected);},
'onAllComplete' : function(event,data) {/*data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');*/},
'onComplete' : function(event, queueID, fileObj, response, data) {$("#status-message2").prepend(response);}
});
this.btn_upload.click(function(){
$(this).disable();
//var q = $(".uploadifyQueueItem").eq(0);
//o.uploadifySettings('scriptData',{type:zh.upload.getType(),name:zh.upload.getName(q),desc:zh.upload.getDesc(q),love:zh.upload.getLove(q)});
o.uploadifyUpload();
$(this).enable();
});
this.btn_clear.click(function(){
o.uploadifyClearQueue();
});
}
};$(function() {
zh.upload.init($("#custom_file_upload"),{
'uploader': '{C_SITE}1/uploadify.swf',
'script' : '{U('Photo','Upload')}',
'cancelImg':'{C_SITE}1/cancel.png'
});
});