Simplify hiding/showing progress bar type field
With a parent element for just input and label, there aren't conflicts with the globalize tabs code anymore.
This commit is contained in:
@@ -34,9 +34,9 @@ App.Forms =
|
||||
title_field = $("[name^='progress_bar'][name$='[title]']").parent()
|
||||
|
||||
if this.value == "primary"
|
||||
title_field.addClass("hide")
|
||||
title_field.hide()
|
||||
else
|
||||
title_field.removeClass("hide")
|
||||
title_field.show()
|
||||
|
||||
$("[name='progress_bar[kind]']").change()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user