添加自定义类型
This commit is contained in:
parent
6208ce0b43
commit
68c869fc8e
@ -30,6 +30,7 @@
|
||||
<script type="text/javascript" src="assets/js/vendor/bootstrap-fileupload/js/fileinput.js"></script>
|
||||
<script type="text/javascript" src="assets/js/vendor/bootstrap-fileupload/js/locales/zh.js"></script>
|
||||
<script type="text/javascript">
|
||||
var customType = top.restAjax.params(window.location.href).customType;
|
||||
var uploadFileArray = [];
|
||||
function closeBox() {
|
||||
top.dialog.closeBox();
|
||||
@ -46,7 +47,7 @@
|
||||
$('#uploadFile').fileinput({
|
||||
language: 'zh', // 中文
|
||||
uploadUrl: $('#uploadUrl').val(), // 服务器地址
|
||||
allowedFileExtensions: $('#allowFiles').val().split(','), // 文件后缀
|
||||
allowedFileExtensions: customType ? customType.split(',') : $('#allowFiles').val().split(','), // 文件后缀
|
||||
showUpload: false, // 显示上传按钮
|
||||
showRemove: false, // 显示删除按钮
|
||||
showPreview: true, // 是否预览
|
||||
|
Loading…
Reference in New Issue
Block a user