Commit da664cf0 authored by agping's avatar agping

1

parent 892af10a
......@@ -44,7 +44,7 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde
_doc.on('click', '.add-pic', function(){
follow.getaddPicList();
});
_doc.on('click', '.pdf-pre-b', function() {
_doc.on('click', '.pdf-pre-a', function() {
var file_id = $(this).parent('li').attr('id') - 0 ;
var _url = '/index/downloadFile';
window.open(_url + '?file_id=' + file_id);
......@@ -185,20 +185,12 @@ define (['doT', 'text!temp/schoolBusiness_template_tpl.html','ckfinder','ckfinde
for ( var i = 0 ; i < file_paths.length ; i++ ){
console.log(file_paths[i]['file_name'])
var _tempArr = file_paths[i]['file_name'].split('/');
if(file_paths[i]['file_former_name']){
file_paths[i]['file_name'] && $('#fujian_ul').append('<li class="pdf-pre-li" id='+file_paths[i]['file_id'] +'><a class="pdf-pre-a pdf-pre-b" download="{1}" href="javascript:;" title="点击可下载">{2}</a></li>'.stringFormatObj({
file_paths[i]['file_name'] && $('#fujian_ul').append('<li class="pdf-pre-li" id='+file_paths[i]['file_id'] +'><a class="pdf-pre-a" download="{1}" href="javascript:;" title="点击可下载">{2}</a></li>'.stringFormatObj({
'0': '/' + file_paths[i]['show_file'],
'1': dealFileName(decodeURI(_tempArr[_tempArr.length-1])),
'2': file_paths[i]['file_former_name']?file_paths[i]['file_former_name']:dealFileName(decodeURI(_tempArr[_tempArr.length-1]))
}));
}else{
file_paths[i]['file_name'] && $('#fujian_ul').append('<li class="pdf-pre-li" id='+file_paths[i]['file_id'] +'><a class="pdf-pre-a" download="{1}" href="{1}" title="点击可下载">{2}</a></li>'.stringFormatObj({
'0': '/' + file_paths[i]['show_file'],
'1': dealFileName(decodeURI(_tempArr[_tempArr.length-1])),
'2': file_paths[i]['file_former_name']?file_paths[i]['file_former_name']:dealFileName(decodeURI(_tempArr[_tempArr.length-1]))
}));
}
}));
}
}
$('#announcement_title').attr('readonly','readonly');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment