'
+ $.each(this.quoted_notice.attachments,function(k,qAttach){
+ quotedAttachmentsHTML += '
';
+ // remove attachment string from content
+ quotedContent = quotedContent.split(window.siteInstanceURL + 'attachment/' + qAttach.attachment_id).join('');
+ });
+ quotedAttachmentsHTML += '
';
+
+ // if there is only one attachment, it goes before, otherwise after
+ if(this.quoted_notice.attachments.length == 1) {
+ quotedAttachmentsHTMLbefore = quotedAttachmentsHTML;
+ }
+ else {
+ quotedAttachmentsHTMLafter = quotedAttachmentsHTML;
+ }
+ }
+
+ var quotedNoticeHTML = quotedAttachmentsHTMLbefore + '\
+ \
+