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 <a name="comment-wwedit-wrapper-pos"></a>
16 <form class="comment-edit-form {{$indent}}" id="comment-edit-form-{{$id}}" action="item" method="post" >
17 {{*<!-- <span id="hide-commentbox-{{$id}}" class="hide-commentbox fakelink" onclick="showHideCommentBox({{$id}});">{{$comment}}</span>
18 <form class="comment-edit-form" style="display: none;" id="comment-edit-form-{{$id}}" action="item" method="post" onsubmit="post_comment({{$id}}); return false;">-->*}}
19 <input type="hidden" name="type" value="{{$type}}" />
20 <input type="hidden" name="source" value="{{$sourceapp}}" />
21 <input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
22 <input type="hidden" name="parent" value="{{$parent}}" />
23 <input type="hidden" name="return" value="{{$return_path}}#comment-wwedit-wrapper-pos" />
24 <input type="hidden" name="jsreload" value="{{$jsreload}}" />
25 <input type="hidden" name="preview" id="comment-preview-inp-{{$id}}" value="0" />
26 <input type="hidden" name="post_id_random" value="{{$rand_num}}" />
28 {{*<!--<div class="comment-edit-photo" id="comment-edit-photo-{{$id}}" >-->*}}
29 <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>
31 {{*<!--<div class="comment-edit-photo-end"></div>-->*}}
32 {{*<!--<ul class="comment-edit-bb-{{$id}}">
33 <li><a class="editicon boldbb shadow"
34 style="cursor: pointer;" title="{{$edbold}}"
35 onclick="insertFormatting('{{$comment}}','b', {{$id}});"></a></li>
36 <li><a class="editicon italicbb shadow"
37 style="cursor: pointer;" title="{{$editalic}}"
38 onclick="insertFormatting('{{$comment}}','i', {{$id}});"></a></li>
39 <li><a class="editicon underlinebb shadow"
40 style="cursor: pointer;" title="{{$eduline}}"
41 onclick="insertFormatting('{{$comment}}','u', {{$id}});"></a></li>
42 <li><a class="editicon quotebb shadow"
43 style="cursor: pointer;" title="{{$edquote}}"
44 onclick="insertFormatting('{{$comment}}','quote', {{$id}});"></a></li>
45 <li><a class="editicon codebb shadow"
46 style="cursor: pointer;" title="{{$edcode}}"
47 onclick="insertFormatting('{{$comment}}','code', {{$id}});"></a></li>-->*}}
48 {{*<!-- <li><a class="editicon imagebb shadow"
49 style="cursor: pointer;" title="{{$edimg}}"
50 onclick="insertFormatting('{{$comment}}','img', {{$id}});"></a></li>
51 <li><a class="editicon urlbb shadow"
52 style="cursor: pointer;" title="{{$edurl}}"
53 onclick="insertFormatting('{{$comment}}','url', {{$id}});"></a></li>
54 <li><a class="editicon videobb shadow"
55 style="cursor: pointer;" title="{{$edvideo}}"
56 onclick="insertFormatting('{{$comment}}','video', {{$id}});"></a></li>-->*}}
58 {{*<!--<div class="comment-edit-bb-end"></div>-->*}}
59 {{*<!-- <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>-->*}}
60 <textarea id="comment-edit-text-{{$id}}" class="comment-edit-text-full" name="body" ></textarea>
61 {{*<!--{{if $qcomment}}
62 <select id="qcomment-select-{{$id}}" name="qcomment-{{$id}}" class="qcomment" onchange="qCommentInsert(this,{{$id}});" >
63 <option value=""></option>
64 {{foreach $qcomment as $qc}}
65 <option value="{{$qc}}">{{$qc}}</option>
70 <div class="comment-edit-text-end"></div>
71 <div class="comment-edit-submit-wrapper" id="comment-edit-submit-wrapper-{{$id}}" >
72 <input type="submit" id="comment-edit-submit-{{$id}}" class="comment-edit-submit" name="submit" value="{{$submit}}" />
73 {{*<!--<span onclick="preview_comment({{$id}});" id="comment-edit-preview-link-{{$id}}" class="preview-link fakelink">{{$preview}}</span>
74 <div id="comment-edit-preview-{{$id}}" class="comment-edit-preview" style="display:none;"></div>-->*}}
77 {{*<!--<div class="comment-edit-end"></div>-->*}}