Sha256: 662d1920c17c59578d86fbd2d5c52d5625bf35182aee00d8fc683f5ec9802e75

Contents?: true

Size: 353 Bytes

Versions: 3

Compression:

Stored size: 353 Bytes

Contents

pageflow.BackButtonDecoratorView = Backbone.Marionette.Layout.extend({
  template: 'templates/back_button_decorator',

  events: {
    'click a.back': 'goBack',
  },

  regions: {
    outlet: '.outlet'
  },

  onRender: function() {
    this.outlet.show(this.options.view);
  },

  goBack: function() {
    editor.navigate('/', {trigger: true});
  }
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-0.2.1 app/assets/javascripts/pageflow/editor/views/back_button_decorator_view.js
pageflow-0.2.0 app/assets/javascripts/pageflow/editor/views/back_button_decorator_view.js
pageflow-0.1.0 app/assets/javascripts/pageflow/editor/views/back_button_decorator_view.js