]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/dispy/bottom.tpl
add doctitle thingy, and update cursor
[friendica.git] / view / theme / dispy / bottom.tpl
index 1af83e4c8c9d4dde52ced203c209255a54752f43..0bcc3aca4187b03931934e11a0ac071db4d73a24 100644 (file)
@@ -43,5 +43,17 @@ function insertFormatting(comment, BBcode, id) {
 function cmtBbOpen(id) {
        $(".comment-edit-bb-" + id).show();
 }
+function cmtBbClose(id) {
+    $(".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);
+}
 </script>
-<script type="text/javascript" src="$baseurl/view/theme/dispy/js/modernizr.custom.2.5.3.min.js"></script>