diff options
author | Thomas Willingham <founder@kakste.com> | 2014-05-22 19:39:28 +0100 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2014-05-22 19:39:28 +0100 |
commit | 292601728430469f21b81d7055cd485a0efb491c (patch) | |
tree | 4d35371f101a26b69eb8dc6dc15c3be4a884258e /view/js/main.js | |
parent | b06fd69da84626c1e8c1d8b5dbda6f181027a782 (diff) | |
parent | 8e2771cbd409d56917e7d249d80a2c422609f540 (diff) | |
download | volse-hubzilla-292601728430469f21b81d7055cd485a0efb491c.tar.gz volse-hubzilla-292601728430469f21b81d7055cd485a0efb491c.tar.bz2 volse-hubzilla-292601728430469f21b81d7055cd485a0efb491c.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/view/js/main.js b/view/js/main.js index fa32df424..b388ab940 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -6,21 +6,25 @@ $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); $("#mod-cmnt-wrap-" + id).show(); - openMenu("comment-edit-submit-wrapper-" + id); + openMenu("comment-tools-" + id); return true; } return false; } + function commentClose(obj,id) { - if(obj.value == '') { - obj.value = aStr['comment']; - $("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); - $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); - $("#mod-cmnt-wrap-" + id).hide(); - closeMenu("comment-edit-submit-wrapper-" + id); - return true; - } - return false; + //$(document).on('click', function() { + if(obj.value == '') { + obj.value = aStr['comment']; + $("#comment-edit-text-" + id).removeClass("comment-edit-text-full"); + $("#comment-edit-text-" + id).addClass("comment-edit-text-empty"); + $("#mod-cmnt-wrap-" + id).hide(); + closeMenu("comment-tools-" + id); + return true; + } + return false; + //}); + } function showHideCommentBox(id) { @@ -32,14 +36,13 @@ } } - function commentInsert(obj,id) { var tmpStr = $("#comment-edit-text-" + id).val(); if(tmpStr == '$comment') { tmpStr = ''; $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); - openMenu("comment-edit-submit-wrapper-" + id); + openMenu("comment-tools-" + id); } var ins = $(obj).html(); ins = ins.replace('<','<'); @@ -62,7 +65,7 @@ tmpStr = ""; $("#comment-edit-text-" + id).addClass("comment-edit-text-full"); $("#comment-edit-text-" + id).removeClass("comment-edit-text-empty"); - openMenu("comment-edit-submit-wrapper-" + id); + openMenu("comment-tools-" + id); $("#comment-edit-text-" + id).val(tmpStr); } @@ -748,6 +751,7 @@ function updateConvItems(mode,data) { $("#comment-edit-form-" + id).serialize(), function(data) { if(data.success) { + $("#comment-edit-preview-" + id).hide(); $("#comment-edit-wrapper-" + id).hide(); $("#comment-edit-text-" + id).val(''); var tarea = document.getElementById("comment-edit-text-" + id); |