app/assets/javascripts/citygate/home.js.coffee.erb in citygate-0.1.0 vs app/assets/javascripts/citygate/home.js.coffee.erb in citygate-0.1.1
- old
+ new
@@ -6,9 +6,17 @@
window.location.href = data.redirect
init: ->
role_selector.select_new_role()
+ form_wizard =
+ init: ->
+ $("#new_user").formToWizard({ submitButton: 'save-account' })
+
+ ready = ->
+ role_selector.init()
+ form_wizard.init()
+
# When using turbolinks
- $(window).bind 'page:change', role_selector.init()
+ $(document).on('page:load', ready)
# otherwise
- role_selector.init()
+ ready()