Anton Shestakov <av6@dwimlabs.net>, Fri, 27 May 2016 18:38:36 +0800
docs: add another reason of existence
The feature set is not serious maybe, but the overall project kinda already is
by now.
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.$el.find('[data-workspace]').removeClass('active'); this.$el.find('[data-workspace="' + workspace + '"]').addClass('active');