Browse Source

Do not fire UIOffline when navigating away

Fixes #487
Audrius Butkevicius 11 years ago
parent
commit
db54dca694
2 changed files with 4 additions and 0 deletions
  1. 0 0
      auto/gui.files.go
  2. 4 0
      gui/app.js

File diff suppressed because it is too large
+ 0 - 0
auto/gui.files.go


+ 4 - 0
gui/app.js

@@ -25,6 +25,10 @@ syncthing.controller('EventCtrl', function ($scope, $http) {
     var online = false;
     var lastID = 0;
 
+    $(window).bind('beforeunload', function() {
+        online = false;
+    });
+
     var successFn = function (data) {
         if (!online) {
             $scope.$emit('UIOnline');

Some files were not shown because too many files changed in this diff