Browse Source

diabook: add notification in website-title, whenever new notifications arrive

pull/384/head
tomtom84 9 years ago
parent
commit
f475850739
  1. 12
      view/theme/diabook/bottom.tpl
  2. 2
      view/theme/diabook/nav.tpl

12
view/theme/diabook/bottom.tpl

@ -42,6 +42,7 @@ $(document).ready(function() {
});
function tautogrow(id){
$("textarea#comment-edit-text-" +id).autogrow();
};
@ -128,6 +129,17 @@ $(document).ready(function() {
function cmtBbClose(id) {
$(".comment-edit-bb-" + id).hide();
}
$(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>

2
view/theme/diabook/nav.tpl

@ -137,7 +137,7 @@
<div id="scrollup" style="position: fixed; bottom: 5px; right: 10px;z-index: 97;"><a id="down" onclick="scrolldown()" ><img id="scroll_top_bottom" src="view/theme/diabook/icons/scroll_bottom.png" style="display:cursor !important;" alt="back to top" title="Scroll to bottom"></a></div>
<div style="position: fixed; bottom: 3px; left: 25px;">$langselector</div>
<div style="position: fixed; bottom: 61px; left: 6px;">$langselector</div>
<div style="position: fixed; bottom: 23px; left: 5px;"><a href="http://pad.toktan.org/p/diabook" target="blank" ><img src="view/theme/diabook/icons/bluebug.png" title="report bugs for the theme diabook"/></a></div>

Loading…
Cancel
Save