2 $(document).ready( function () {
3 $(document).mouseup(function(e) {
4 var container = $("#comment-edit-wrapper-$id");
5 if( container.has(e.target).length === 0) {
6 commentClose(document.getElementById('comment-edit-text-$id'),$id);
13 <div class="comment-wwedit-wrapper $indent" id="comment-edit-wrapper-$id" style="display: block;" >
14 <form class="comment-edit-form $indent" id="comment-edit-form-$id" action="item" method="post" onsubmit="post_comment($id); return false;" >
15 {#<!-- <span id="hide-commentbox-$id" class="hide-commentbox fakelink" onclick="showHideCommentBox($id);">$comment</span>
16 <form class="comment-edit-form" style="display: none;" id="comment-edit-form-$id" action="item" method="post" onsubmit="post_comment($id); return false;">-->#}
17 <input type="hidden" name="type" value="$type" />
18 <input type="hidden" name="source" value="$sourceapp" />
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">
31 <li><a class="editicon boldbb shadow"
32 style="cursor: pointer;" title="$edbold"
33 onclick="insertFormatting('$comment','b', $id);"></a></li>
34 <li><a class="editicon italicbb shadow"
35 style="cursor: pointer;" title="$editalic"
36 onclick="insertFormatting('$comment','i', $id);"></a></li>
37 <li><a class="editicon underlinebb shadow"
38 style="cursor: pointer;" title="$eduline"
39 onclick="insertFormatting('$comment','u', $id);"></a></li>
40 <li><a class="editicon quotebb shadow"
41 style="cursor: pointer;" title="$edquote"
42 onclick="insertFormatting('$comment','quote', $id);"></a></li>
43 <li><a class="editicon codebb shadow"
44 style="cursor: pointer;" title="$edcode"
45 onclick="insertFormatting('$comment','code', $id);"></a></li>
46 {#<!-- <li><a class="editicon imagebb shadow"
47 style="cursor: pointer;" title="$edimg"
48 onclick="insertFormatting('$comment','img', $id);"></a></li>
49 <li><a class="editicon urlbb shadow"
50 style="cursor: pointer;" title="$edurl"
51 onclick="insertFormatting('$comment','url', $id);"></a></li>
52 <li><a class="editicon videobb shadow"
53 style="cursor: pointer;" title="$edvideo"
54 onclick="insertFormatting('$comment','video', $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 {{ for $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="preview-link 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>-->#}