           if $(_modal).text().indexOf('<%=') > 0
             throw "Template not done"
 
-
           views["step#{i}"] = view: _.template($(_modal).html())
 
         # split steps into views

            return false # to block disappearance

          onRender: ->
            if form
              $(this.el).modal('replaceSubmit')
            else


# compatibility with turbolinks
$(document).on "page:load", ->
  modals = {}

# disable enter key on <select> boxes from submitting
$.fn.disableEnter = ->
  $(this).on 'keyup', (e) ->
    if e.which is 13
      e.preventDefault()
      return false