3 $(document).ready( function () {
4 $(document).mouseup(function(e) {
5 var container = $("#comment-edit-wrapper-{{$id}}");
6 if( container.has(e.target).length === 0) {
7 commentClose(document.getElementById('comment-edit-text-{{$id}}'),{{$id}});
14 <div class="comment-wwedit-wrapper {{$indent}}" id="comment-edit-wrapper-{{$id}}" style="display: block;">
15 <form class="comment-edit-form" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">
16 {{*<!-- <span id="hide-commentbox-{{$id}}" class="hide-commentbox fakelink" onclick="showHideCommentBox({{$id}});">{{$comment}}</span>
17 <form class="comment-edit-form" style="display: none;" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">-->*}}
18 <input type="hidden" name="type" value="{{$type}}" />
19 <input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
20 <input type="hidden" name="parent" value="{{$parent}}" />
21 {{*<!--<input type="hidden" name="return" value="{{$return_path}}" />-->*}}
22 <input type="hidden" name="jsreload" value="{{$jsreload}}" />
23 <input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
24 <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
26 {{*<!-- <div class="comment-edit-photo" id="comment-edit-photo-{{$id}}" >-->*}}
27 <a class="comment-edit-photo comment-edit-photo-link" id="comment-edit-photo-{{$id}}" href="{{$mylink}}" title="{{$mytitle}}"><img class="my-comment-photo" src="{{$myphoto}}" alt="{{$mytitle}}" title="{{$mytitle}}" /></a>
29 {{*<!--<div class="comment-edit-photo-end"></div>-->*}}
30 <ul class="comment-edit-bb" id="comment-edit-bb-{{$id}}">
31 <li><a class="editicon boldbb shadow"
32 style="cursor: pointer;" title="{{$edbold}}"
33 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="b" data-id="{{$id}}"></a></li>
34 <li><a class="editicon italicbb shadow"
35 style="cursor: pointer;" title="{{$editalic}}"
36 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="i" data-id="{{$id}}"></a></li>
37 <li><a class="editicon underlinebb shadow"
38 style="cursor: pointer;" title="{{$eduline}}"
39 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="u" data-id="{{$id}}"></a></li>
40 <li><a class="editicon quotebb shadow"
41 style="cursor: pointer;" title="{{$edquote}}"
42 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="quote" data-id="{{$id}}"></a></li>
43 <li><a class="editicon codebb shadow"
44 style="cursor: pointer;" title="{{$edcode}}"
45 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="code" data-id="{{$id}}"></a></li>
46 <li><a class="editicon imagebb shadow"
47 style="cursor: pointer;" title="{{$edimg}}"
48 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="img" data-id="{{$id}}"></a></li>
49 <li><a class="editicon urlbb shadow"
50 style="cursor: pointer;" title="{{$edurl}}"
51 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="url" data-id="{{$id}}"></a></li>
52 <li><a class="editicon videobb shadow"
53 style="cursor: pointer;" title="{{$edvideo}}"
54 data-role="insert-formatting" data-comment="{{$comment}}" data-bbcode="video" data-id="{{$id}}"></a></li>
56 {{*<!-- <div class="comment-edit-bb-end"></div>-->*}}
57 {{*<!-- <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,{{$id}});cmtBbOpen({{$id}});" onBlur="commentClose(this,{{$id}});cmtBbClose({{$id}});" >{{$comment}}</textarea>-->*}}
58 <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,{{$id}});cmtBbOpen({{$id}});" >{{$comment}}</textarea>
60 <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" >
61 <option value=""></option>
62 {{foreach $qcomment as $qc}}
63 <option value="{{$qc}}">{{$qc}}</option>
68 <div class="comment-edit-text-end"></div>
69 <div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" style="display: none;" >
70 <input type="submit" onclick="post_comment({{$id}}); return false;" id="comment-edit-submit-{{$id}}" class="comment-edit-submit" name="submit" value="{{$submit}}" />
71 <span onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}" class="fakelink">{{$preview}}</span>
72 <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>
75 {{*<!--<div class="comment-edit-end"></div>-->*}}