Make it easier to know destroy_field is an input
By using the input and finding it by its name, it's easier to see the difference between this input and the delete-language link.
This commit is contained in:
@@ -48,7 +48,7 @@ App.Globalize =
|
||||
)
|
||||
|
||||
destroy_locale_field: (locale) ->
|
||||
$(".destroy-locale[data-locale=" + locale + "]")
|
||||
$("input[id$=_destroy][data-locale=" + locale + "]")
|
||||
|
||||
site_customization_enable_locale_field: (locale) ->
|
||||
$("#enabled_translations_" + locale)
|
||||
|
||||
Reference in New Issue
Block a user