去掉上传文件的时候文件名后的 可选的描述
This commit is contained in:
parent
8ffbe8f300
commit
f1092d5072
|
@ -552,27 +552,27 @@ function addFileCourseSource(inputEl, file, eagerUpload,checkBox) {
|
||||||
fileSpan.append(
|
fileSpan.append(
|
||||||
$('<input>', {
|
$('<input>', {
|
||||||
'type': 'text',
|
'type': 'text',
|
||||||
'class': 'filename readonly',
|
'class': 'upload_filename readonly',
|
||||||
'name': 'attachments[' + attachmentId + '][filename]',
|
'name': 'attachments[' + attachmentId + '][filename]',
|
||||||
'readonly': 'readonly'
|
'readonly': 'readonly'
|
||||||
}).val(file.name),
|
}).val(file.name),
|
||||||
$('<input>', {
|
// $('<input>', {
|
||||||
'type': 'text',
|
// 'type': 'text',
|
||||||
'class': 'description',
|
// 'class': 'description',
|
||||||
'name': 'attachments[' + attachmentId + '][description]',
|
// 'name': 'attachments[' + attachmentId + '][description]',
|
||||||
'maxlength': 254,
|
// 'maxlength': 254,
|
||||||
'placeholder': $(inputEl).data('descriptionPlaceholder')
|
// 'placeholder': $(inputEl).data('descriptionPlaceholder')
|
||||||
}).toggle(!eagerUpload),
|
// }).toggle(!eagerUpload),
|
||||||
$('<span >' + $(inputEl).data('fieldIsPublic') + ':</span>').attr({
|
// $('<span >' + $(inputEl).data('fieldIsPublic') + ':</span>').attr({
|
||||||
'class': 'ispublic-label'
|
// 'class': 'ispublic-label'
|
||||||
}),
|
// }),
|
||||||
$('<input>', {
|
// $('<input>', {
|
||||||
'type': 'checkbox',
|
// 'type': 'checkbox',
|
||||||
'class': 'is_public_checkbox',
|
// 'class': 'is_public_checkbox',
|
||||||
'value': 1,
|
// 'value': 1,
|
||||||
'name': 'attachments[' + attachmentId + '][is_public_checkbox]',
|
// 'name': 'attachments[' + attachmentId + '][is_public_checkbox]',
|
||||||
checked: 'checked'
|
// checked: 'checked'
|
||||||
}).toggle(!eagerUpload),
|
// }).toggle(!eagerUpload),
|
||||||
$('<a> </a>').attr({
|
$('<a> </a>').attr({
|
||||||
'href': "#",
|
'href': "#",
|
||||||
'class': 'remove-upload'
|
'class': 'remove-upload'
|
||||||
|
|
Loading…
Reference in New Issue