Sha256: 056847bade38730ed5e9ec5473fea0db04184cdc2a756ef42fe284f2b94ddabe

Contents?: true

Size: 440 Bytes

Versions: 17

Compression:

Stored size: 440 Bytes

Contents

#= require ../shared/form_view

Locomotive.Views.MyAccount ||= {}

class Locomotive.Views.MyAccount.EditView extends Locomotive.Views.Shared.FormView

  el: '#content'

  events:
    'submit': 'save'

  initialize: ->
    @model = new Locomotive.Models.CurrentAccount(@options.account)

    Backbone.ModelBinding.bind @

  render: ->
    super()

  save: (event) ->
    if @model.get('locale') == window.locale
      @save_in_ajax(event)


Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
locomotive_cms-2.0.3 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.2 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.1 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
tribeca_cms-0.1.1 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
tribeca_cms-2.0.0.rc12 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc12 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc11 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc10 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc9 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc8 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc7 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc6 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc5 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc4 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc2 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee
locomotive_cms-2.0.0.rc1 app/assets/javascripts/locomotive/views/my_account/edit_view.js.coffee