         link.attr('data-' + element.data('key'), element.val())
       div = $('<div>').append(link)
       tinymce.get(@options.editor.id).insertContent(div.html())
-)
 
 jQuery ->
-  appConfigurationView.setConfiguration 'internalLink', 'showForm', InternalLinkFormView
+  appConfigurationView.setConfiguration 'internalLink', 'showForm', OpenOrchestra.InternalLinkFormView

        activateForm(@, $('form', @$el))
    return

  closeModal: (event) ->
    @$el.modal 'hide'

  closedModal: (event) ->
    @$el.remove()

  sendToTiny: (event) ->
    if $('.label-tinyMce', this.$el).val() != ''
      @closeModal()

    ]
    return

  ###*
   * Spin and render ajax call
  ###
  render: ->
    @setElement @renderTemplate('OpenOrchestraBackofficeBundle:BackOffice:Underscore/internalLinkModalView',
      body: '<h1 class="spin"><i class=\"fa fa-cog fa-spin\"></i> Loading...</h1>'
