Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.insertView('#featureSidebar', tabs);
this.insertView('#mainSidebar', bookmarks);
},
keep: true
});
// Holds references to view instances
this.v = {};
this.v.main = new Backbone.Layout({
el: '#main',
views: {
'#modal_container': new directus.Modal.Container(),
'#sidebar': new Navbar({model: app.settings}),
'#header': new BaseHeaderView()
}
});
this.v.messages = new Backbone.Layout({
el: '#messages'
});
this.routeHistory = {
stack: [],
base: '',
routes: []
};
this.bind('route', this.onRoute, this);
openUserModal: function (userId) {
var view = new directus.Modal.User({model: app.users.get(userId)});
this.openViewInModal(view);
},
openModal: function (options, callback) {
var containerView = this.v.main.getView('#modal_container');
if (!containerView) {
return;
}
if (containerView.isOpen()) {
containerView.close(true);
}
var view = new directus.Modal.Prompt(options);
containerView.show(view);
},