Sha256: b2a4c74d5b4215b7525e71ade4e73814b1af24c1ab1032ddd907116a362bb348
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
#= require ../shared/form_view Locomotive.Views.CurrentSite ||= {} class Locomotive.Views.CurrentSite.EditView extends Locomotive.Views.Shared.FormView el: '.main' initialize: -> @attach_events_on_private_access_attribute() @display_locale_picker_only_for_seo() @allow_url_redirections_expert_mode() attach_events_on_private_access_attribute: -> @$('#site_private_access').on 'switchChange.bootstrapSwitch', (event, state) -> $inputs = $('.locomotive_site_password') $inputs.toggleClass('hide') display_locale_picker_only_for_seo: -> $picker = @$('.locale-picker-btn-group').css(visibility: 'hidden') @$('a[data-toggle="tab"]').on 'shown.bs.tab', (event) -> if $(event.target).attr('href') == '#seo' then $picker.css(visibility: '') else $picker.css(visibility: 'hidden') allow_url_redirections_expert_mode: -> @$('#site_url_redirections_expert_mode').on 'switchChange.bootstrapSwitch', (event, state) -> $inputs = $('.locomotive_site_url_redirections_plain_text, .locomotive_site_url_redirections') $inputs.toggleClass('hide')
Version data entries
2 entries across 2 versions & 1 rubygems