remove trailing white-spaces from public/javascripts/attachments.js
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10989 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cabfece11b
commit
d0bbaef308
@ -8,7 +8,7 @@ function addFile(inputEl, file, eagerUpload) {
|
|||||||
var attachmentId = addFile.nextAttachmentId++;
|
var attachmentId = addFile.nextAttachmentId++;
|
||||||
|
|
||||||
var fileSpan = $('<span>', { id: 'attachments_' + attachmentId });
|
var fileSpan = $('<span>', { id: 'attachments_' + attachmentId });
|
||||||
|
|
||||||
fileSpan.append(
|
fileSpan.append(
|
||||||
$('<input>', { type: 'text', 'class': 'filename readonly', name: 'attachments[' + attachmentId + '][filename]', readonly: 'readonly'} ).val(file.name),
|
$('<input>', { type: 'text', 'class': 'filename readonly', name: 'attachments[' + attachmentId + '][filename]', readonly: 'readonly'} ).val(file.name),
|
||||||
$('<input>', { type: 'text', 'class': 'description', name: 'attachments[' + attachmentId + '][description]', maxlength: 255, placeholder: $(inputEl).data('description-placeholder') } ).toggle(!eagerUpload),
|
$('<input>', { type: 'text', 'class': 'description', name: 'attachments[' + attachmentId + '][description]', maxlength: 255, placeholder: $(inputEl).data('description-placeholder') } ).toggle(!eagerUpload),
|
||||||
@ -31,7 +31,7 @@ function ajaxUpload(file, attachmentId, fileSpan, inputEl) {
|
|||||||
function onLoadstart(e) {
|
function onLoadstart(e) {
|
||||||
fileSpan.removeClass('ajax-waiting');
|
fileSpan.removeClass('ajax-waiting');
|
||||||
fileSpan.addClass('ajax-loading');
|
fileSpan.addClass('ajax-loading');
|
||||||
$('input:submit', $(this).parents('form')).attr('disabled', 'disabled');
|
$('input:submit', $(this).parents('form')).attr('disabled', 'disabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
function onProgress(e) {
|
function onProgress(e) {
|
||||||
@ -129,7 +129,7 @@ function addInputFiles(inputEl) {
|
|||||||
if (attachmentId) {
|
if (attachmentId) {
|
||||||
$(inputEl).attr({ name: 'attachments[' + attachmentId + '][file]', style: 'display:none;' }).appendTo('#attachments_' + attachmentId);
|
$(inputEl).attr({ name: 'attachments[' + attachmentId + '][file]', style: 'display:none;' }).appendTo('#attachments_' + attachmentId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clearedFileInput.insertAfter('#attachments_fields');
|
clearedFileInput.insertAfter('#attachments_fields');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user