diabook-themes: comment-bbcode-bugfix
This commit is contained in:
parent
54817f058a
commit
c0a377e0de
2 changed files with 9 additions and 9 deletions
|
@ -11,15 +11,15 @@
|
||||||
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
<a class="comment-edit-photo-link" href="$mylink" title="$mytitle"><img class="my-comment-photo" src="$myphoto" alt="$mytitle" title="$mytitle" /></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="comment-edit-photo-end"></div>
|
<div class="comment-edit-photo-end"></div>
|
||||||
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);tautogrow($id);cmtBbOpen($id);" onBlur="commentClose(this,$id);cmtBbClose($id);" >$comment</textarea>
|
<textarea id="comment-edit-text-$id" class="comment-edit-text-empty" name="body" onFocus="commentOpen(this,$id);tautogrow($id);cmtBbOpen($id);" >$comment</textarea>
|
||||||
<div class="comment-edit-bb-$id" style="display:none;">
|
<div class="comment-edit-bb-$id" style="display:none;">
|
||||||
<a class="icon bb-image" style="cursor: pointer;" onclick="insertFormatting('img',$id);">img</a>
|
<a class="icon bb-image" style="cursor: pointer;" onclick="insertFormatting('$comment','img',$id);">img</a>
|
||||||
<a class="icon bb-url" style="cursor: pointer;" onclick="insertFormatting('url',$id);">url</a>
|
<a class="icon bb-url" style="cursor: pointer;" onclick="insertFormatting('$comment','url',$id);">url</a>
|
||||||
<a class="icon bb-video" style="cursor: pointer;" onclick="insertFormatting('video',$id);">video</a>
|
<a class="icon bb-video" style="cursor: pointer;" onclick="insertFormatting('$comment','video',$id);">video</a>
|
||||||
<a class="icon underline" style="cursor: pointer;" onclick="insertFormatting('u',$id);">u</a>
|
<a class="icon underline" style="cursor: pointer;" onclick="insertFormatting('$comment','u',$id);">u</a>
|
||||||
<a class="icon italic" style="cursor: pointer;" onclick="insertFormatting('i',$id);">i</a>
|
<a class="icon italic" style="cursor: pointer;" onclick="insertFormatting('$comment','i',$id);">i</a>
|
||||||
<a class="icon bold" style="cursor: pointer;" onclick="insertFormatting('b',$id);">b</a>
|
<a class="icon bold" style="cursor: pointer;" onclick="insertFormatting('$comment','b',$id);">b</a>
|
||||||
<a class="icon quote" style="cursor: pointer;" onclick="insertFormatting('quote',$id);">quote</a>
|
<a class="icon quote" style="cursor: pointer;" onclick="insertFormatting('$comment','quote',$id);">quote</a>
|
||||||
</div>
|
</div>
|
||||||
{{ if $qcomment }}
|
{{ if $qcomment }}
|
||||||
<select id="qcomment-select-$id" name="qcomment-$id" class="qcomment" onchange="qCommentInsert(this,$id);" >
|
<select id="qcomment-select-$id" name="qcomment-$id" class="qcomment" onchange="qCommentInsert(this,$id);" >
|
||||||
|
|
|
@ -480,7 +480,7 @@ function close_lastlikes(){
|
||||||
$a->page['htmlhead'] .= '
|
$a->page['htmlhead'] .= '
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function insertFormatting(BBcode,id) {
|
function insertFormatting(comment,BBcode,id) {
|
||||||
|
|
||||||
var tmpStr = $("#comment-edit-text-" + id).val();
|
var tmpStr = $("#comment-edit-text-" + id).val();
|
||||||
if(tmpStr == comment) {
|
if(tmpStr == comment) {
|
||||||
|
|
Loading…
Reference in a new issue