]> git.mxchange.org Git - friendica.git/blobdiff - js/textedit.js
filebrowser: massive improvements (fix https://github.com/rabuzarus/frio/issues/3...
[friendica.git] / js / textedit.js
index be4cd770a8a2f0c580679bb167d38c1caa67cac1..f9944d5ff70d0a7056fd97cfe0e4b29cd728648d 100644 (file)
@@ -43,7 +43,6 @@ function hideThread(id) {
        $("#collapsed-comments-" + id + " .collapsed-comments").hide()
 }
 
-
 function cmtBbOpen(id) {
        $("#comment-edit-bb-" + id).show();
 }
@@ -115,6 +114,24 @@ function commentCloseUI(obj, id) {
 
        $(document).bind( "click.commentClose", handler );
 }
+
+// test if there is default content in the jot text box and remove it
+function jotTextOpenUI(obj) {
+       if(obj.value == aStr.share) {
+               obj.value = '';
+               $(".modal-body #profile-jot-text").addClass("profile-jot-text-full").removeClass("profile-jot-text-empty");
+       }
+}
+
+// insert default content into the jot text box
+// if it's empty
+function jotTextCloseUI(obj) {
+       if(obj.value === '') {
+       obj.value = aStr.share;
+               $(".modal-body #profile-jot-text").removeClass("profile-jot-text-full").addClass("profile-jot-text-empty");
+       }
+}
+
 function commentOpen(obj,id) {
        if(obj.value == aStr.comment) {
                obj.value = '';