|
|
|
@ -502,8 +502,11 @@ function imageAddInputFiles(inputEl){
|
|
|
|
|
addInputFiles(inputEl)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function addInputFiles(inputEl,btnId) {
|
|
|
|
|
function addInputFiles(inputEl,btnId) {
|
|
|
|
|
// var clearedFileInput = $(inputEl).clone().val('');
|
|
|
|
|
if($("#ajax-indicator").length>0){
|
|
|
|
|
$("#ajax-indicator").show();
|
|
|
|
|
}
|
|
|
|
|
if (inputEl.files) {
|
|
|
|
|
// if(inputEl.files.length >= 5){
|
|
|
|
|
// alert('一次选择的文件不能超过5个')
|
|
|
|
@ -527,6 +530,9 @@ function addInputFiles(inputEl,btnId) {
|
|
|
|
|
if (count <= 0) count = 1;
|
|
|
|
|
$('#upload_file_count').html("<span id=\"count\">" + count + "</span>" + $(inputEl).data('fileCount'));
|
|
|
|
|
}
|
|
|
|
|
if($("#ajax-indicator").length>0){
|
|
|
|
|
$("#ajax-indicator").hide();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//clearedFileInput.insertAfter('#attachments_fields');
|
|
|
|
@ -605,6 +611,9 @@ function uploadAndAttachFiles(files, inputEl,btnId) {
|
|
|
|
|
addFile(inputEl, this, true,btnId);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if($("#ajax-indicator").length>0){
|
|
|
|
|
$("#ajax-indicator").hide();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function uploadAndAttachFiles_board(files, inputEl, id,btnId) {
|
|
|
|
|