Commit 6654d660 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Vispa.setupSocket: fixed "reload" on socket/server disconnect

parent dfe23620
...@@ -145,7 +145,7 @@ define([ ...@@ -145,7 +145,7 @@ define([
// setup other events // setup other events
$(window).bind("beforeunload", function() { $(window).bind("beforeunload", function() {
if (!self.args.global.devMode) { if (!self.args.global.devMode && !self.varData.socketDisconnectDialog) {
return ""; return "";
} }
}); });
...@@ -435,7 +435,7 @@ define([ ...@@ -435,7 +435,7 @@ define([
iconClass: "fa-refresh", iconClass: "fa-refresh",
label: "Reload", label: "Reload",
class: "btn btn-primary", class: "btn btn-primary",
calllback: window.location.reload.bind(window.location), callback: window.location.reload.bind(window.location),
} }
} }
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment