Переработаны роутеры приложения
Переписано APi WebSocket для работы с новыми роутерами
This commit is contained in:
@@ -3,17 +3,21 @@ Router
|
||||
pageActive('');
|
||||
Auth.init();;
|
||||
})
|
||||
.add('territory/constructor', function () {
|
||||
pageActive();
|
||||
Territory_constructor.init();;
|
||||
})
|
||||
.add('territory/manager/(.*)/(.*)', function (type, id) {
|
||||
pageActive();
|
||||
Territory_Manager.init(type, id);
|
||||
})
|
||||
.add('territory/editor/(.*)/(.*)', function (type, id) {
|
||||
pageActive();
|
||||
Editor.init(type, id);
|
||||
Territory_editor.init(type, id);
|
||||
})
|
||||
.add('territory/card/(.*)/(.*)', function (type, id) {
|
||||
pageActive();
|
||||
Card.init(type, id);
|
||||
Territory_card.init(type, id);
|
||||
})
|
||||
.add('territory/history', function () {
|
||||
pageActive();
|
||||
@@ -21,7 +25,7 @@ Router
|
||||
})
|
||||
.add('territory', function () {
|
||||
pageActive('territory');
|
||||
Territory.init();
|
||||
Territory_list.init();
|
||||
})
|
||||
.add('sheeps/(.*)', function (name) {
|
||||
pageActive('sheeps');
|
||||
@@ -39,18 +43,18 @@ Router
|
||||
pageActive('schedule');
|
||||
Schedule.init();;
|
||||
})
|
||||
.add('stand/card/(.*)', function (id) {
|
||||
pageActive();
|
||||
Stand_card.init(id);;
|
||||
})
|
||||
.add('stand', function () {
|
||||
pageActive('stand');
|
||||
Stand.init();;
|
||||
Stand_list.init();;
|
||||
})
|
||||
.add('options', function () {
|
||||
pageActive('options');
|
||||
Options.init();;
|
||||
})
|
||||
.add('constructor', function () {
|
||||
pageActive();
|
||||
Constructor.init();;
|
||||
})
|
||||
.add(function () {
|
||||
page_404();;
|
||||
pageActive();
|
||||
|
||||
Reference in New Issue
Block a user