Sha256: e6c602ae7a3d8271a9feeb99f2ae844837256921a39d2ba0203419964c365c44

Contents?: true

Size: 419 Bytes

Versions: 9

Compression:

Stored size: 419 Bytes

Contents

Locomotive.Views.ContentEntries ||= {}

class Locomotive.Views.ContentEntries.NewView extends Locomotive.Views.Shared.FormView

  el: '.main'

  initialize: ->
    super()
    $('#collapseContentTypes').addClass('in')

  render: ->
    super()

    $('.tab-pane .has-error').each ->
      $tab_pane_id = $(@).parents('.tab-pane').attr('id')
      $tab = $("[href='##{$tab_pane_id}']")
      $tab.addClass('has-errors')

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotivecms-4.2.0.alpha2 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.2.0.alpha1 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.1.1 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.1.0 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.1.0.rc1 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.0.3 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.0.2 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.0.1 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee
locomotivecms-4.0.0 app/assets/javascripts/locomotive/views/content_entries/new_view.js.coffee