Sha256: a4f56129a979508d0749b0f92af37352a2cd51888a97cac179e1d9375fb296e8
Contents?: true
Size: 753 Bytes
Versions: 9
Compression:
Stored size: 753 Bytes
Contents
#= require ../shared/form_view Locomotive.Views.Pages ||= {} class Locomotive.Views.Pages.FormView extends Locomotive.Views.Shared.FormView el: '#content' initialize: -> @attach_events_on_redirect_attribute() @attach_events_on_cache_enabled_attribute() attach_events_on_redirect_attribute: -> @$('#page_redirect').on 'switchChange.bootstrapSwitch', (event, state) -> $inputs = $('.locomotive_page_redirect_url, .locomotive_page_redirect_type') $inputs.toggleClass('hide') attach_events_on_cache_enabled_attribute: -> @$('#page_cache_enabled').on 'switchChange.bootstrapSwitch', (event, state) -> $inputs = $('.locomotive_page_cache_control, .locomotive_page_cache_vary') $inputs.toggleClass('hide')
Version data entries
9 entries across 9 versions & 1 rubygems