1
0
Fork 0
This commit is contained in:
friendica 2012-07-24 17:45:12 -07:00
commit db0b7c36ea

View file

@ -25,6 +25,7 @@
<!-- in dispy-dark --> <!-- in dispy-dark -->
<script> <script>
var updateInterval = $update_interval; var updateInterval = $update_interval;
var localUser = {{ if $local_user }}$local_user{{ else }}false{{ endif }};
function confirmDelete() { return confirm("$delitem"); } function confirmDelete() { return confirm("$delitem"); }
function commentOpen(obj,id) { function commentOpen(obj,id) {
@ -32,6 +33,7 @@
obj.value = ''; obj.value = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).addClass("comment-edit-text-full");
$("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty");
$("#mod-cmnt-wrap-" + id).show();
openMenu("comment-edit-submit-wrapper-" + id); openMenu("comment-edit-submit-wrapper-" + id);
} }
} }
@ -40,6 +42,7 @@
obj.value = '$comment'; obj.value = '$comment';
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-full");
$("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); $("#comment-edit-text-" + id).addClass("comment-edit-text-empty");
$("#mod-cmnt-wrap-" + id).hide();
closeMenu("comment-edit-submit-wrapper-" + id); closeMenu("comment-edit-submit-wrapper-" + id);
} }
} }
@ -74,6 +77,7 @@
ins = ins.replace('&amp;','&'); ins = ins.replace('&amp;','&');
ins = ins.replace('&quot;','"'); ins = ins.replace('&quot;','"');
$("#comment-edit-text-" + id).val(tmpStr + ins); $("#comment-edit-text-" + id).val(tmpStr + ins);
$(obj).val('');
} }
function showHideComments(id) { function showHideComments(id) {