     $("[data-prototype]").each ->
       PO.formPrototypes.addPrototype $(this)
       return
+    @aliasIsRefreshable = $('input#node_alias').val() is ''
     @addEventOnForm()
-    @bindEvent()
   addEventOnForm: ->
     viewContext = this
     $("form", @$el).on "submit", (e) ->

            Backbone.history.loadUrl(Backbone.history.fragment)
    return
  refreshAlias: (event) ->
    console.log 'RefreshAlias'
    $('input#node_alias').val(event.target.value.replace(/[^a-z0-9]/gi,'_'))
  bindEvent: ->
    if $('input#node_alias').val() is ''
      @events['keyup input#node_name'] = "refreshAlias"
)

adminFormView = Backbone.View.extend(
  el: '#OrchestraBOModal'
  events:
    'keyup input#node_name' : 'refreshAlias'
  initialize: (options) ->
    @url = options.url
    @aliasIsRefreshable = false
    @method = if options.method then options.method else 'GET'
    _.bindAll this, "refreshAlias"
    @call()
    return
  call: ->
