aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-08-16 10:16:33 +0200
committerMario Vavti <mario@mariovavti.com>2017-08-16 10:16:33 +0200
commit1c5629263bcb4d6b3ffad23fc4571de20eeab029 (patch)
tree4eb3276fe828ce7c424227e2165be2ce6e4347cb /view/js/main.js
parent2a482223935ed02e275214093ab25b6ef1261381 (diff)
parent4addde782e8d79e6ac1a964af4fb9197f74d3dfb (diff)
downloadvolse-hubzilla-1c5629263bcb4d6b3ffad23fc4571de20eeab029.tar.gz
volse-hubzilla-1c5629263bcb4d6b3ffad23fc4571de20eeab029.tar.bz2
volse-hubzilla-1c5629263bcb4d6b3ffad23fc4571de20eeab029.zip
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'view/js/main.js')
-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) {