<script>
var updateInterval = $update_interval;
+ var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }};
function confirmDelete() { return confirm("$delitem"); }
function commentOpen(obj,id) {
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
$("#mod-cmnt-wrap-" + id).show();
openMenu("comment-edit-submit-wrapper-" + id);
+ return true;
}
+ return false;
}
function commentClose(obj,id) {
if(obj.value == '') {
$("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
$("#mod-cmnt-wrap-" + id).hide();
closeMenu("comment-edit-submit-wrapper-" + id);
+ return true;
}
+ return false;
}
$(obj).val('');
}
- function showHideComments(id) {
- if( $('#collapsed-comments-' + id).is(':visible')) {
- $('#collapsed-comments-' + id).hide();
- $('#hide-comments-' + id).html('$showmore');
+ window.showMore = "$showmore";
+ window.showFewer = "$showfewer";
+
+ function showHideCommentBox(id) {
+ if( $('#comment-edit-form-' + id).is(':visible')) {
+ $('#comment-edit-form-' + id).hide();
}
else {
- $('#collapsed-comments-' + id).show();
- $('#hide-comments-' + id).html('$showfewer');
+ $('#comment-edit-form-' + id).show();
}
}