mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Redirect to start if server is not found
This commit is contained in:
parent
995a43e7e4
commit
f98e6e9d72
@ -49,14 +49,19 @@ define(function (require) {
|
||||
layoutView.content.show(missionsListView);
|
||||
missionsListView.delegateEvents();
|
||||
},
|
||||
|
||||
|
||||
mods: function () {
|
||||
layoutView.content.show(modsListView);
|
||||
modsListView.delegateEvents();
|
||||
},
|
||||
|
||||
server: function (id) {
|
||||
layoutView.content.show(new ServerView({model: servers.get(id)}));
|
||||
var server = servers.get(id);
|
||||
if (server) {
|
||||
layoutView.content.show(new ServerView({model: server}));
|
||||
} else {
|
||||
this.navigate("#", true)
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user