]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/quattro/js/quattro.js
Merge branch 'friendica:2022.12-rc' into new_image_presentation
[friendica.git] / view / theme / quattro / js / quattro.js
index 5a5390737ffbed4df0cc62a210e58d8f0f348b94..e91794febad852969d2b6736d95692e9f03a7dba 100644 (file)
@@ -2,8 +2,8 @@
 $(document).ready(function(){
        $('nav').bind('nav-update', function(e,data){
                var notifCount = $(data).find('notif').attr('count');
-               var intro = $(data).find('intro').text();
-               var mail = $(data).find('mail').text();
+               var intro = parseInt($(data).find('intro').text());
+               var mail = parseInt($(data).find('mail').text());
 
                $(".tool .notify").removeClass("on");
                $(data).find("group").each(function() {
@@ -60,28 +60,6 @@ $(document).ready(function(){
        });
 });
 
-function insertFormatting(BBcode, id) {
-       var tmpStr = $("#comment-edit-text-" + id).val();
-       if (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);
-       }
-
-       textarea = document.getElementById("comment-edit-text-" +id);
-       if (document.selection) {
-               textarea.focus();
-               selected = document.selection.createRange();
-               selected.text = "["+BBcode+"]" + selected.text + "[/"+BBcode+"]";
-       } else if (textarea.selectionStart || textarea.selectionStart == "0") {
-               var start = textarea.selectionStart;
-               var end = textarea.selectionEnd;
-               textarea.value = textarea.value.substring(0, start) + "["+BBcode+"]" + textarea.value.substring(start, end) + "[/"+BBcode+"]" + textarea.value.substring(end, textarea.value.length);
-       }
-
-       return true;
-}
-
 function showThread(id) {
        $("#collapsed-comments-" + id).show()
        $("#collapsed-comments-" + id + " .collapsed-comments").show()