Follow naming conventions for HTML classes and IDs

We use underscores for IDs and hyphens for classes.
This commit is contained in:
Javi Martín
2018-10-15 17:49:41 +02:00
parent 08c043425a
commit dbea577062
8 changed files with 17 additions and 17 deletions

View File

@@ -267,7 +267,7 @@ def field_for(field, locale, visible: true)
if translatable_class.name == "I18nContent"
"contents_content_#{translatable.key}values_#{field}_#{locale}"
else
within(".translatable_fields[data-locale='#{locale}']") do
within(".translatable-fields[data-locale='#{locale}']") do
find("input[id$='_#{field}'], textarea[id$='_#{field}']", visible: visible)[:id]
end
end