Sha256: 8e2a4a01dc435ea2e248f0ef5c092cd78043593fc2db8a8a22d8ce04402cdfa8
Contents?: true
Size: 1 KB
Versions: 48
Compression:
Stored size: 1 KB
Contents
pageflow.EditPageLinkView = Backbone.Marionette.Layout.extend({ template: 'pageflow/editor/templates/edit_page_link', regions: { formContainer: '.form_container' }, ui: { backButton: 'a.back' }, events: { 'click a.back': 'goBack', 'click a.destroy': 'destroy' }, onRender: function() { var configurationEditor = this.options.page.pageType().createPageLinkConfigurationEditorView({ model: this.model, page: this.options.page }); this.formContainer.show(configurationEditor); this.highlight(); }, highlight: function() { this.model.highlight(); this.listenTo(this, 'close', function() { this.model.resetHighlight(); }); }, destroy: function() { if (confirm(I18n.t('pageflow.internal_links.editor.views.edit_page_link_view.confirm_destroy'))) { this.model.remove(); this.goBack(); } }, goBack: function() { pageflow.editor.navigate('/pages/' + this.options.page.id + '/links', {trigger: true}); } });
Version data entries
48 entries across 48 versions & 1 rubygems