1
0
Fork 0

FIXED - Routing to undefined server - ie after remove

master
Matthieu Lalonde 12 years ago committed by xSmurf
parent f1c9d86f88
commit 49a8229162

@ -206,12 +206,12 @@ console.log(Bootstrap);
, _routerActionClient: function (hostname) { , _routerActionClient: function (hostname) {
var that = this var that = this
, server = this.servers.get(hostname) , server = this.servers.get(hostname)
, client = server.client , client = server && server.client || undefined
; ;
if (server && client) {
that.Views.SideBar.select(server); that.Views.SideBar.select(server);
if (client) {
var __fnAppEventClientLoaded = function () { var __fnAppEventClientLoaded = function () {
if (!that.Views.Main.getView(server.get("hostname"))) { if (!that.Views.Main.getView(server.get("hostname"))) {
that.Views.Main.setView(server.client.attributes.hostname, new ClientView({ that.Views.Main.setView(server.client.attributes.hostname, new ClientView({

Loading…
Cancel
Save