Prefix classes used in JavaScript with "js-"

The same way it's done in the rest of the application.
This commit is contained in:
Javi Martín
2018-10-15 18:03:20 +02:00
committed by decabeza
parent d10f07b0b4
commit cf4c30b143
3 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ App.Globalize =
else
$(this).hide()
$('.js-delete-language').hide()
$('#delete_' + locale).show()
$('#js_delete_' + locale).show()
highlight_locale: (element) ->
$('.js-globalize-locale-link').removeClass('is-active');
@@ -72,7 +72,7 @@ App.Globalize =
$(this).hide()
App.Globalize.remove_language(locale)
$(".add-fields-container").on "cocoon:after-insert", ->
$(".js-add-fields-container").on "cocoon:after-insert", ->
$.each(
App.Globalize.enabled_locales(),
(index, locale) -> App.Globalize.enable_locale(locale)