]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/smoothly/nav.tpl
Merge pull request #479 from fermionic/album-image-inserted-too-large
[friendica.git] / view / theme / smoothly / nav.tpl
index b010442a90dfe9be66b980ab4934829acc70fad9..d7dd6aeebeb7e96c05e84227f298f572b8a78f4c 100644 (file)
@@ -1,6 +1,4 @@
 <nav>
-       $langselector
-
        <span id="banner">$banner</span>
 
        <div id="notifications">        
        </div>
 </nav>
 
-<div id="scrollup">
-<a href="#top"><img src="view/theme/smoothly/totop.png"
-    alt="back to top" title="Back to top" /></a>
+<div id="scrollup" >
+<a href="javascript:scrollTo(0,0)"><img src="view/theme/smoothly/totop.png" alt="back to top" title="Back to top" /></a>
 </div>
 
 <ul id="nav-notifications-template" style="display:none;" rel="template">
        <li class="{4}"><a href="{0}"><img src="{1}" height="24" width="24" alt="" />{2} <span class="notif-when">{3}</span></a></li>
 </ul>
+
+<div style="position: fixed; top: 3px; left: 5px; z-index:9999">$langselector</div>
+
+<script>
+var pagetitle = null;
+$("nav").bind('nav-update', function(e,data){
+if (pagetitle==null) pagetitle = document.title;
+var count = $(data).find('notif').attr('count');
+if (count>0) {
+document.title = "("+count+") "+pagetitle;
+} else {
+document.title = pagetitle;
+}
+});
+</script>