diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-15 21:38:08 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-15 21:39:01 -0700 |
commit | 4addde782e8d79e6ac1a964af4fb9197f74d3dfb (patch) | |
tree | 8837018da61f6ca797684f1a1009c07c881a2dbf /view/js/main.js | |
parent | 9b87940ed2bf8cd7c80337d224d390f1bcb379e9 (diff) | |
download | volse-hubzilla-4addde782e8d79e6ac1a964af4fb9197f74d3dfb.tar.gz volse-hubzilla-4addde782e8d79e6ac1a964af4fb9197f74d3dfb.tar.bz2 volse-hubzilla-4addde782e8d79e6ac1a964af4fb9197f74d3dfb.zip |
put unseen network count in page title; hubzilla issue #843
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 7 |
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) { |