diabook: add notification in website-title, whenever new notifications arrive
This commit is contained in:
parent
5fc47d03bc
commit
f475850739
2 changed files with 13 additions and 1 deletions
|
@ -42,6 +42,7 @@ $(document).ready(function() {
|
|||
|
||||
});
|
||||
|
||||
|
||||
function tautogrow(id){
|
||||
$("textarea#comment-edit-text-" +id).autogrow();
|
||||
};
|
||||
|
@ -129,5 +130,16 @@ $(document).ready(function() {
|
|||
$(".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>
|
||||
|
|
|
@ -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…
Reference in a new issue