Shows the selected file attachment under the form_notice textarea
This commit is contained in:
@@ -233,6 +233,7 @@ $(document).ready(function(){
|
||||
$("#form_notice").each(addAjaxHidden);
|
||||
NoticeReply();
|
||||
NoticeAttachments();
|
||||
NoticeDataAttachSelected();
|
||||
});
|
||||
|
||||
function NoticeReply() {
|
||||
@@ -310,3 +311,11 @@ function NoticeAttachments() {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function NoticeDataAttachSelected() {
|
||||
$('#notice_data-attach').change(function() {
|
||||
S = '<div id="notice_data-attach_selected" class="success">'+$(this).val()+'</div>';
|
||||
NDAS = $('#notice_data-attach_selected');
|
||||
(NDAS.length > 0) ? NDAS.replaceWith(S) : $('#form_notice').append(S);
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user