X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fdispy%2Fbottom.tpl;h=82f02017031d14afe3cfbfc2e1ff49b6c9e3773d;hb=e433f20cd883767185c78f05f6344248592b736a;hp=130bfb25ae4f3004d79a552ef80e1d3d386f4a2f;hpb=27c23229c4d22d4f477cb8665725ec681e70666a;p=friendica.git diff --git a/view/theme/dispy/bottom.tpl b/view/theme/dispy/bottom.tpl index 130bfb25ae..82f0201703 100644 --- a/view/theme/dispy/bottom.tpl +++ b/view/theme/dispy/bottom.tpl @@ -43,4 +43,29 @@ 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); +} + +$(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); +}) +