aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js4
-rwxr-xr-xview/tpl/comment_item.tpl12
2 files changed, 8 insertions, 8 deletions
diff --git a/view/js/main.js b/view/js/main.js
index a4cbed064..b388ab940 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -13,7 +13,7 @@
}
function commentClose(obj,id) {
- $(document).on('click', function() {
+ //$(document).on('click', function() {
if(obj.value == '') {
obj.value = aStr['comment'];
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
@@ -23,7 +23,7 @@
return true;
}
return false;
- });
+ //});
}
diff --git a/view/tpl/comment_item.tpl b/view/tpl/comment_item.tpl
index 598c0d58e..121cf0995 100755
--- a/view/tpl/comment_item.tpl
+++ b/view/tpl/comment_item.tpl
@@ -53,12 +53,12 @@
{{/if}}
</div>
<div class="btn-group pull-right" id="comment-edit-submit-wrapper-{{$id}}">
- {{if $preview}}
- <button id="comment-edit-submit-{{$id}}" class="btn btn-default btn-xs btn-preview" onclick="preview_comment({{$id}}); return false;" title="{{$preview}}">
- <i class="icon-eye-open comment-icon" ></i>
- </button>
- {{/if}}
- <button id="comment-edit-submit-{{$id}}" class="btn btn-primary btn-xs" type="submit" name="submit" onclick="post_comment({{$id}}); return false;">{{$submit}}</button>
+ {{if $preview}}
+ <button id="comment-edit-submit-{{$id}}" class="btn btn-default btn-xs btn-preview" onclick="preview_comment({{$id}}); return false;" title="{{$preview}}">
+ <i class="icon-eye-open comment-icon" ></i>
+ </button>
+ {{/if}}
+ <button id="comment-edit-submit-{{$id}}" class="btn btn-primary btn-xs" type="submit" name="submit" onclick="post_comment({{$id}}); return false;">{{$submit}}</button>
</div>
</div>
<div class="clear"></div>