Sha256: f7f26692eb87161521a3fb478a1e79cbccf8cfcd0535c550471679eaa480bcf3
Contents?: true
Size: 1.03 KB
Versions: 21
Compression:
Stored size: 1.03 KB
Contents
pageflow.ConfigurationEditorView = Backbone.Marionette.View.extend({ className: 'configuration_editor', initialize: function() { this.tabsView = new pageflow.TabsView({ i18n: 'pageflow.ui.configuration_editor.tabs', defaultTab: this.options.tab }); this.configure(); }, configure: function() {}, tab: function(name, callback) { this.tabsView.tab(name, _.bind(function() { var tabView = new pageflow.ConfigurationEditorTabView({ model: this.model, placeholderModel: this.options.placeholderModel, tab: name, attributeTranslationKeyPrefixes: this.options.attributeTranslationKeyPrefixes }); callback.call(tabView); return tabView; }, this)); }, render: function() { this.$el.append(this.subview(this.tabsView).el); return this; } }); _.extend(pageflow.ConfigurationEditorView, { repository: {}, register: function(pageTypeName, prototype) { this.repository[pageTypeName] = pageflow.ConfigurationEditorView.extend(prototype); } });
Version data entries
21 entries across 21 versions & 1 rubygems