Do not fire UIOffline when navigating away

Fixes #487
This commit is contained in:
Audrius Butkevicius committed 2014-08-19 23:44:40 +01:00
1 parent 997b20a975
commit db54dca694
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -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');