app/assets/javascripts/spina/forms.js.coffee in spina-template-0.2.7 vs app/assets/javascripts/spina/forms.js.coffee in spina-template-0.2.8
- old
+ new
@@ -1,7 +1,7 @@
$(document).on 'click', '.structure-form-menu ul li a', (e) ->
$structureForm = $(this).parents('.structure-form')
$(this).parent('li').siblings().removeClass('active')
$(this).parent('li').addClass('active')
- $structureForm.find('.structure-form-pane').hide()
- $($(this).attr('href')).show()
+ $structureForm.find('.structure-form-pane').removeClass('active')
+ $($(this).attr('href')).addClass('active')
e.preventDefault()
\ No newline at end of file