Anton Shestakov <av6@dwimlabs.net>, Mon, 18 Sep 2017 00:50:22 +0800
provision: target newer Nginx versions (>1.7.5 for add_header with always)
static/js/framework/views/workspaces.js
Permissions: -rw-r--r--
var WorkspaceTabsView = CollectionView.extend({ initialize: function(options) { this.compileTemplates(options.templates); renderItem: function(workspace) { return $(this.templates.tab(workspace.toJSON())); appendItem: function(workspace) { var $item = this.renderItem(workspace); activate: function(workspace) { this.$('[data-workspace]').removeClass('active'); this.$('[data-workspace="' + workspace + '"]').addClass('active');