瀏覽代碼

Do not fire UIOffline when navigating away

Fixes #487
Audrius Butkevicius 11 年之前
父節點
當前提交
db54dca694
共有 2 個文件被更改,包括 4 次插入0 次删除
  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