app/assets/javascripts/locomotive/views/current_site/edit_view.js.coffee in locomotivecms-3.0.1 vs app/assets/javascripts/locomotive/views/current_site/edit_view.js.coffee in locomotivecms-3.1.0.rc1
- old
+ new
@@ -6,10 +6,17 @@
el: '.main'
initialize: ->
@attach_events_on_private_access_attribute()
+ @display_locale_picker_only_for_seo()
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')