]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy/bottom.tpl
Merge pull request #606 from fermionic/20130204-themes-cant-use-plugin-hooks
[friendica.git] / view / theme / dispy / bottom.tpl
index a0298a7de9b746d5fab4653952cd89d8867c1395..82f02017031d14afe3cfbfc2e1ff49b6c9e3773d 100644 (file)
@@ -42,11 +42,30 @@ function insertFormatting(comment, BBcode, id) {
 
 function cmtBbOpen(id) {
        $(".comment-edit-bb-" + id).show();
-       $(".comment-edit-bb-" + id + "> li").css({visibility: 'visible'});
-       
 }
 function cmtBbClose(id) {
-       $(".comment-edit-bb-" + id).hide();
-       $(".comment-edit-bb-" + id + "> li").css({visibility: 'none'});
+    $(".comment-edit-bb-" + id).hide();
 }
+
+var doctitle = document.title;
+function checkNotify() {
+       if(document.getElementById("notify-update").innerHTML != "") {
+               document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle;
+       } else {
+               document.title = doctitle;
+    };
+    setInterval(function () {checkNotify();}, 10 * 1000);
+}
+
+$(document).ready(function(){
+var doctitle = document.title;
+function checkNotify() {
+if(document.getElementById("notify-update").innerHTML != "")
+document.title = "("+document.getElementById("notify-update").innerHTML+") " + doctitle;
+else
+document.title = doctitle;
+};
+setInterval(function () {checkNotify();}, 10 * 1000);
+})
+
 </script>