mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Ctrl/cmd+click a level in campign editor to open level editor in new tab.
This commit is contained in:
parent
728f726748
commit
a5b5bb1085
1 changed files with 4 additions and 1 deletions
|
@ -201,8 +201,11 @@ module.exports = class CampaignEditorView extends RootView
|
|||
|
||||
onCampaignLevelClicked: (levelOriginal) ->
|
||||
return unless levelTreema = @treema.childrenTreemas?.levels?.childrenTreemas?[levelOriginal]
|
||||
if key.ctrl
|
||||
url = "/editor/level/#{levelTreema.data.slug}"
|
||||
window.open url, '_blank'
|
||||
levelTreema.select()
|
||||
# levelTreema.open()
|
||||
#levelTreema.open()
|
||||
|
||||
onCampaignLevelDoubleClicked: (levelOriginal) ->
|
||||
@openCampaignLevelView @supermodel.getModelByOriginal Level, levelOriginal
|
||||
|
|
Loading…
Reference in a new issue