Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions
@@ -0,0 +1,24 @@
const Backbone = require('backbone');
/**
* New public table router \o/
*
* - No more /#/xxx routes
*/
module.exports = Backbone.Router.extend({
routes: {
':id/public/:scenario': 'change'
},
initialize: function (table) {
this.table = table;
},
change: function (_id, scenario) {
// Check active view, if it is different, change
if (scenario != 'table' && scenario != 'map') scenario = 'table'; // eslint-disable-line eqeqeq
this.table.workViewMobile.active(scenario);
}
});