Shows the selected file attachment under the form_notice textarea
This commit is contained in:
parent
262f864555
commit
1e17f1256a
|
@ -233,6 +233,7 @@ $(document).ready(function(){
|
||||||
$("#form_notice").each(addAjaxHidden);
|
$("#form_notice").each(addAjaxHidden);
|
||||||
NoticeReply();
|
NoticeReply();
|
||||||
NoticeAttachments();
|
NoticeAttachments();
|
||||||
|
NoticeDataAttachSelected();
|
||||||
});
|
});
|
||||||
|
|
||||||
function NoticeReply() {
|
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);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
|
@ -510,10 +510,11 @@ margin-bottom:7px;
|
||||||
margin-left:18px;
|
margin-left:18px;
|
||||||
float:left;
|
float:left;
|
||||||
}
|
}
|
||||||
#form_notice .error {
|
#form_notice .error,
|
||||||
|
#form_notice .success {
|
||||||
float:left;
|
float:left;
|
||||||
clear:both;
|
clear:both;
|
||||||
width:96.9%;
|
width:81.5%;
|
||||||
margin-bottom:0;
|
margin-bottom:0;
|
||||||
line-height:1.618;
|
line-height:1.618;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user