       valEl.append $('<span class="completion"></span>').text completion
 
   populateData: ->
+    console.log('in levelnode populatedata')
     return if @data.name?
     data = _.pick LevelsNode.levels[@keyForParent].attributes, Campaign.denormalizedLevelProperties
     # Mark a level as internally released by default, so that we do not accidentally release a level externally.

    @treema.set path, e.position

  onCampaignLevelClicked: (levelOriginal) ->
    return unless levelTreema = @treema.childrenTreemas?.levels?.childrenTreemas?[levelOriginal]
    if key.ctrl or key.command
      url = "/editor/level/#{levelTreema.data.slug}"
      window.open url, '_blank'
    levelTreema.select()
    #levelTreema.open()

  onCampaignLevelDoubleClicked: (levelOriginal) ->
    @openCampaignLevelView @supermodel.getModelByOriginal Level, levelOriginal

  openCampaignLevelView: (level) ->
    @insertSubView campaignLevelView = new CampaignLevelView({}, level)
    @listenToOnce campaignLevelView, 'hidden', => @$el.find('#campaign-view').show()
    @$el.find('#campaign-view').hide()

      nodeClasses:
        levels: LevelsNode
        level: LevelNode
        nextLevel: NextLevelNode
        campaigns: CampaignsNode
        campaign: CampaignNode
        achievement: AchievementNode
