aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index f928fa377..f20432735 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -272,6 +272,7 @@ var last_filestorage_id = null;
var mediaPlaying = false;
var contentHeightDiff = 0;
var liveRecurse = 0;
+var savedTitle = '';
$(function() {
$.ajaxSetup({cache: false});
@@ -401,11 +402,13 @@ function NavUpdate() {
if(data.network == 0) {
data.network = '';
$('.net-update, .net-button').hide();
+ document.title = savedTitle;
} else {
$('.net-update, .net-button').show();
+ document.title = '(' + data.network + ') ' + savedTitle;
}
$('.net-update').html(data.network);
-
+
if(data.pubs == 0) {
data.pubs = '';
$('.pubs-update, .pubs-button').hide();
@@ -1384,6 +1387,8 @@ $(document).ready(function() {
numbers : aStr['t17'],
};
+ savedTitle = document.title;
+
});
function zFormError(elm,x) {