2014-12-16 20:46:24 -05:00
|
|
|
RootView = require 'views/core/RootView'
|
|
|
|
Campaign = require 'models/Campaign'
|
|
|
|
Level = require 'models/Level'
|
2014-12-18 01:53:04 -05:00
|
|
|
Achievement = require 'models/Achievement'
|
|
|
|
ThangType = require 'models/ThangType'
|
2014-12-22 10:29:29 -05:00
|
|
|
CampaignView = require 'views/play/CampaignView'
|
2014-12-16 20:46:24 -05:00
|
|
|
CocoCollection = require 'collections/CocoCollection'
|
2014-12-18 01:53:04 -05:00
|
|
|
treemaExt = require 'core/treema-ext'
|
|
|
|
utils = require 'core/utils'
|
2014-12-22 16:21:57 -05:00
|
|
|
SaveCampaignModal = require './SaveCampaignModal'
|
|
|
|
RelatedAchievementsCollection = require 'collections/RelatedAchievementsCollection'
|
2014-12-23 09:42:24 -05:00
|
|
|
CampaignLevelView = require './CampaignLevelView'
|
2014-12-18 01:53:04 -05:00
|
|
|
|
|
|
|
achievementProject = ['related', 'rewards', 'name', 'slug']
|
2014-12-28 16:25:20 -05:00
|
|
|
thangTypeProject = ['name', 'original']
|
2014-12-16 20:46:24 -05:00
|
|
|
|
|
|
|
module.exports = class CampaignEditorView extends RootView
|
|
|
|
id: "campaign-editor-view"
|
|
|
|
template: require 'templates/editor/campaign/campaign-editor-view'
|
|
|
|
className: 'editor'
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
events:
|
|
|
|
'click #save-button': 'onClickSaveButton'
|
2014-12-16 20:46:24 -05:00
|
|
|
|
2014-12-22 10:29:29 -05:00
|
|
|
constructor: (options, @campaignHandle) ->
|
2014-12-18 01:53:04 -05:00
|
|
|
super(options)
|
2014-12-22 10:29:29 -05:00
|
|
|
@campaign = new Campaign({_id:@campaignHandle})
|
2014-12-18 01:53:04 -05:00
|
|
|
@supermodel.loadModel(@campaign, 'campaign')
|
|
|
|
|
|
|
|
@levels = new CocoCollection([], {
|
|
|
|
model: Level
|
2014-12-22 10:29:29 -05:00
|
|
|
url: "/db/campaign/#{@campaignHandle}/levels"
|
2014-12-18 01:53:04 -05:00
|
|
|
project: Campaign.denormalizedLevelProperties
|
|
|
|
})
|
|
|
|
@supermodel.loadCollection(@levels, 'levels')
|
|
|
|
|
|
|
|
@achievements = new CocoCollection([], {
|
|
|
|
model: Achievement
|
2014-12-22 10:29:29 -05:00
|
|
|
url: "/db/campaign/#{@campaignHandle}/achievements"
|
2014-12-18 01:53:04 -05:00
|
|
|
project: achievementProject
|
|
|
|
})
|
|
|
|
@supermodel.loadCollection(@achievements, 'achievements')
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
@toSave = new Backbone.Collection()
|
2014-12-28 16:25:20 -05:00
|
|
|
@listenToOnce @campaign ,'sync', @loadThangTypeNames
|
2014-12-22 16:21:57 -05:00
|
|
|
@listenToOnce @campaign, 'sync', @onFundamentalLoaded
|
|
|
|
@listenToOnce @levels, 'sync', @onFundamentalLoaded
|
|
|
|
@listenToOnce @achievements, 'sync', @onFundamentalLoaded
|
|
|
|
|
2015-01-11 13:04:24 -05:00
|
|
|
#_.delay @getCampaignCompletions, 1000 # Roughly never finishes loading, nearly kills server.
|
2015-01-01 15:01:43 -05:00
|
|
|
|
2014-12-28 16:25:20 -05:00
|
|
|
loadThangTypeNames: ->
|
|
|
|
# Load the names of the ThangTypes that this level's Treema nodes might want to display.
|
|
|
|
originals = []
|
|
|
|
for level in _.values(@campaign.get('levels'))
|
|
|
|
originals = originals.concat(_.values(level.requiredGear)) if level.requiredGear
|
|
|
|
originals = originals.concat(_.values(level.restrictedGear)) if level.restrictedGear
|
|
|
|
originals = originals.concat(level.allowedHeroes) if level.allowedHeroes
|
|
|
|
originals = _.uniq _.flatten originals
|
|
|
|
for original in originals
|
|
|
|
thangType = new ThangType()
|
|
|
|
thangType.setProjection(thangTypeProject)
|
|
|
|
thangType.setURL("/db/thang.type/#{original}/version")
|
|
|
|
@supermodel.loadModel(thangType, 'thang')
|
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
onFundamentalLoaded: ->
|
2014-12-28 16:25:20 -05:00
|
|
|
# Load any levels which haven't been denormalized into our campaign.
|
2014-12-22 16:21:57 -05:00
|
|
|
return unless @campaign.loaded and @levels.loaded and @achievements.loaded
|
|
|
|
for level in _.values(@campaign.get('levels'))
|
2014-12-28 16:25:20 -05:00
|
|
|
continue if model = @levels.findWhere(original: level.original)
|
|
|
|
model = new Level({})
|
|
|
|
model.setProjection Campaign.denormalizedLevelProperties
|
|
|
|
model.setURL("/db/level/#{level.original}/version")
|
|
|
|
@levels.add @supermodel.loadModel(model, 'level').model
|
|
|
|
achievements = new RelatedAchievementsCollection level.original
|
|
|
|
achievements.setProjection achievementProject
|
|
|
|
@supermodel.loadCollection achievements, 'achievements'
|
|
|
|
@listenToOnce achievements, 'sync', ->
|
|
|
|
@achievements.add(achievements.models)
|
2014-12-18 01:53:04 -05:00
|
|
|
|
|
|
|
onLoaded: ->
|
2014-12-22 16:21:57 -05:00
|
|
|
@toSave.add @campaign if @campaign.hasLocalChanges()
|
2014-12-18 01:53:04 -05:00
|
|
|
campaignLevels = $.extend({}, @campaign.get('levels'))
|
|
|
|
for level in @levels.models
|
|
|
|
levelOriginal = level.get('original')
|
2014-12-22 12:06:17 -05:00
|
|
|
campaignLevel = campaignLevels[levelOriginal]
|
|
|
|
continue if not campaignLevel
|
2014-12-18 01:53:04 -05:00
|
|
|
|
|
|
|
$.extend campaignLevel, _.omit(level.attributes, '_id')
|
|
|
|
achievements = @achievements.where {'related': levelOriginal}
|
|
|
|
rewards = []
|
|
|
|
for achievement in achievements
|
|
|
|
for rewardType, rewardArray of achievement.get('rewards')
|
|
|
|
for reward in rewardArray
|
|
|
|
rewardObject = { achievement: achievement.id }
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
if rewardType is 'heroes'
|
|
|
|
rewardObject.hero = reward
|
|
|
|
thangType = new ThangType({}, {project: thangTypeProject})
|
|
|
|
thangType.setURL("/db/thang.type/#{reward}/version")
|
|
|
|
@supermodel.loadModel(thangType, 'thang')
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
if rewardType is 'levels'
|
|
|
|
rewardObject.level = reward
|
|
|
|
if not @levels.findWhere({original: reward})
|
|
|
|
level = new Level({}, {project: Campaign.denormalizedLevelProperties})
|
|
|
|
level.setURL("/db/level/#{reward}/version")
|
|
|
|
@supermodel.loadModel(level, 'level')
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
if rewardType is 'items'
|
|
|
|
rewardObject.item = reward
|
|
|
|
thangType = new ThangType({}, {project: thangTypeProject})
|
|
|
|
thangType.setURL("/db/thang.type/#{reward}/version")
|
|
|
|
@supermodel.loadModel(thangType, 'thang')
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
rewards.push rewardObject
|
|
|
|
campaignLevel.rewards = rewards
|
|
|
|
delete campaignLevel.unlocks
|
2014-12-28 16:25:20 -05:00
|
|
|
campaignLevel.campaign = @campaign.get 'slug'
|
2014-12-18 01:53:04 -05:00
|
|
|
campaignLevels[levelOriginal] = campaignLevel
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
@campaign.set('levels', campaignLevels)
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
for level in _.values campaignLevels
|
|
|
|
model = @levels.findWhere {original: level.original}
|
|
|
|
model.set key, level[key] for key in Campaign.denormalizedLevelProperties
|
2014-12-28 16:25:20 -05:00
|
|
|
@toSave.add model if model.hasLocalChanges()
|
|
|
|
@updateRewardsForLevel model, level.rewards
|
2014-12-22 16:21:57 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
super()
|
|
|
|
|
2014-12-16 20:46:24 -05:00
|
|
|
getRenderData: ->
|
|
|
|
c = super()
|
|
|
|
c.campaign = @campaign
|
2015-01-01 15:01:43 -05:00
|
|
|
c.campaignDropOffs = @campaignDropOffs
|
2014-12-16 20:46:24 -05:00
|
|
|
c
|
2014-12-22 16:21:57 -05:00
|
|
|
|
|
|
|
onClickSaveButton: ->
|
|
|
|
@toSave.set @toSave.filter (m) -> m.hasLocalChanges()
|
|
|
|
@openModalView new SaveCampaignModal({}, @toSave)
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-16 20:46:24 -05:00
|
|
|
afterRender: ->
|
|
|
|
super()
|
|
|
|
treemaOptions =
|
|
|
|
schema: Campaign.schema
|
|
|
|
data: $.extend({}, @campaign.attributes)
|
2014-12-28 16:25:20 -05:00
|
|
|
filePath: "db/campaign/#{@campaign.get('_id')}"
|
2014-12-16 20:46:24 -05:00
|
|
|
callbacks:
|
|
|
|
change: @onTreemaChanged
|
|
|
|
select: @onTreemaSelectionChanged
|
|
|
|
dblclick: @onTreemaDoubleClicked
|
|
|
|
nodeClasses:
|
|
|
|
levels: LevelsNode
|
|
|
|
level: LevelNode
|
2014-12-19 16:46:01 -05:00
|
|
|
campaigns: CampaignsNode
|
|
|
|
campaign: CampaignNode
|
2014-12-18 01:53:04 -05:00
|
|
|
achievement: AchievementNode
|
|
|
|
supermodel: @supermodel
|
2014-12-16 20:46:24 -05:00
|
|
|
|
|
|
|
@treema = @$el.find('#campaign-treema').treema treemaOptions
|
|
|
|
@treema.build()
|
|
|
|
@treema.open()
|
2014-12-18 01:53:04 -05:00
|
|
|
@treema.childrenTreemas.levels?.open()
|
2014-12-16 20:46:24 -05:00
|
|
|
|
2014-12-22 12:06:17 -05:00
|
|
|
@campaignView = new CampaignView({editorMode: true, supermodel: @supermodel}, @campaignHandle)
|
|
|
|
@campaignView.highlightElement = _.noop # make it stop
|
|
|
|
@listenTo @campaignView, 'level-moved', @onCampaignLevelMoved
|
|
|
|
@listenTo @campaignView, 'adjacent-campaign-moved', @onAdjacentCampaignMoved
|
|
|
|
@listenTo @campaignView, 'level-clicked', @onCampaignLevelClicked
|
2014-12-29 15:46:14 -05:00
|
|
|
@listenTo @campaignView, 'level-double-clicked', @onCampaignLevelDoubleClicked
|
2014-12-22 12:06:17 -05:00
|
|
|
@insertSubView @campaignView
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
onTreemaChanged: (e, nodes) =>
|
|
|
|
for node in nodes
|
|
|
|
path = node.getPath()
|
|
|
|
if _.string.startsWith path, '/levels/'
|
|
|
|
parts = path.split('/')
|
|
|
|
original = parts[2]
|
|
|
|
level = @supermodel.getModelByOriginal Level, original
|
|
|
|
campaignLevel = @treema.get "/levels/#{original}"
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
@updateRewardsForLevel level, campaignLevel.rewards
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
level.set key, campaignLevel[key] for key in Campaign.denormalizedLevelProperties
|
|
|
|
@toSave.add level if level.hasLocalChanges()
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
@toSave.add @campaign
|
2014-12-22 12:06:17 -05:00
|
|
|
@campaign.set key, value for key, value of @treema.data
|
|
|
|
@campaignView.setCampaign(@campaign)
|
2014-12-18 01:53:04 -05:00
|
|
|
|
2014-12-23 09:42:24 -05:00
|
|
|
onTreemaDoubleClicked: (e, node) =>
|
|
|
|
path = node.getPath()
|
|
|
|
return unless _.string.startsWith path, '/levels/'
|
|
|
|
original = path.split('/')[2]
|
2014-12-29 15:46:14 -05:00
|
|
|
@openCampaignLevelView @supermodel.getModelByOriginal Level, original
|
2014-12-23 09:42:24 -05:00
|
|
|
|
2014-12-22 10:54:07 -05:00
|
|
|
onCampaignLevelMoved: (e) ->
|
|
|
|
path = "levels/#{e.levelOriginal}/position"
|
|
|
|
@treema.set path, e.position
|
|
|
|
|
|
|
|
onAdjacentCampaignMoved: (e) ->
|
|
|
|
path = "adjacentCampaigns/#{e.campaignID}/position"
|
|
|
|
@treema.set path, e.position
|
|
|
|
|
2014-12-22 11:09:58 -05:00
|
|
|
onCampaignLevelClicked: (levelOriginal) ->
|
|
|
|
return unless levelTreema = @treema.childrenTreemas?.levels?.childrenTreemas?[levelOriginal]
|
2014-12-29 23:06:27 -05:00
|
|
|
if key.ctrl or key.command
|
2014-12-29 16:22:35 -05:00
|
|
|
url = "/editor/level/#{levelTreema.data.slug}"
|
|
|
|
window.open url, '_blank'
|
2014-12-22 11:09:58 -05:00
|
|
|
levelTreema.select()
|
2014-12-29 16:22:35 -05:00
|
|
|
#levelTreema.open()
|
2014-12-22 11:09:58 -05:00
|
|
|
|
2014-12-29 15:46:14 -05:00
|
|
|
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()
|
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
updateRewardsForLevel: (level, rewards) ->
|
|
|
|
achievements = @supermodel.getModels(Achievement)
|
|
|
|
achievements = (a for a in achievements when a.get('related') is level.get('original'))
|
|
|
|
for achievement in achievements
|
2014-12-22 16:21:57 -05:00
|
|
|
rewardSubset = (r for r in rewards when r.achievement is achievement.id)
|
|
|
|
oldRewards = achievement.get 'rewards'
|
2014-12-18 01:53:04 -05:00
|
|
|
newRewards = {}
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
heroes = _.compact((r.hero for r in rewardSubset))
|
|
|
|
newRewards.heroes = heroes if heroes.length
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
items = _.compact((r.item for r in rewardSubset))
|
|
|
|
newRewards.items = items if items.length
|
|
|
|
|
|
|
|
levels = _.compact((r.level for r in rewardSubset))
|
|
|
|
newRewards.levels = levels if levels.length
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-22 16:21:57 -05:00
|
|
|
newRewards.gems = oldRewards.gems if oldRewards.gems
|
2014-12-18 01:53:04 -05:00
|
|
|
achievement.set 'rewards', newRewards
|
2014-12-22 16:21:57 -05:00
|
|
|
if achievement.hasLocalChanges()
|
|
|
|
@toSave.add achievement
|
2015-01-02 15:36:47 -05:00
|
|
|
|
2015-01-05 13:28:56 -05:00
|
|
|
getCampaignCompletions: =>
|
2015-01-01 15:01:43 -05:00
|
|
|
# Fetch last 7 days of campaign drop-off rates
|
|
|
|
|
2015-01-07 17:49:21 -05:00
|
|
|
startDay = utils.getUTCDay -6
|
2015-01-01 15:01:43 -05:00
|
|
|
|
|
|
|
success = (data) =>
|
|
|
|
return if @destroyed
|
|
|
|
# API returns all the campaign data currently
|
|
|
|
@campaignDropOffs = data[@campaignHandle]
|
2015-01-02 15:36:47 -05:00
|
|
|
mapFn = (item) ->
|
2015-01-01 15:01:43 -05:00
|
|
|
item.startDropRate = (item.startDropped / item.started * 100).toFixed(2)
|
|
|
|
item.finishDropRate = (item.finishDropped / item.finished * 100).toFixed(2)
|
2015-01-05 13:28:56 -05:00
|
|
|
item.completionRate = (item.finished / item.started * 100).toFixed(2)
|
2015-01-01 15:01:43 -05:00
|
|
|
item
|
|
|
|
@campaignDropOffs.levels = _.map @campaignDropOffs.levels, mapFn, @
|
|
|
|
@campaignDropOffs.startDay = startDay
|
|
|
|
@render()
|
|
|
|
|
|
|
|
# TODO: Why do we need this url dash?
|
2015-01-05 13:28:56 -05:00
|
|
|
request = @supermodel.addRequestResource 'campaign_completions', {
|
|
|
|
url: '/db/analytics_log_event/-/campaign_completions'
|
2015-01-02 16:31:43 -05:00
|
|
|
data: {startDay: startDay, slug: @campaignHandle}
|
2015-01-01 15:01:43 -05:00
|
|
|
method: 'POST'
|
|
|
|
success: success
|
|
|
|
}, 0
|
|
|
|
request.load()
|
|
|
|
|
2014-12-16 20:46:24 -05:00
|
|
|
|
|
|
|
class LevelsNode extends TreemaObjectNode
|
|
|
|
valueClass: 'treema-levels'
|
|
|
|
@levels: {}
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-16 20:46:24 -05:00
|
|
|
buildValueForDisplay: (valEl, data) ->
|
|
|
|
@buildValueForDisplaySimply valEl, ''+_.size(data)
|
|
|
|
|
|
|
|
childPropertiesAvailable: -> @childSource
|
|
|
|
|
|
|
|
childSource: (req, res) =>
|
|
|
|
s = new Backbone.Collection([], {model:Level})
|
|
|
|
s.url = '/db/level'
|
|
|
|
s.fetch({data: {term:req.term, project: Campaign.denormalizedLevelProperties.join(',')}})
|
2014-12-22 12:06:17 -05:00
|
|
|
s.once 'sync', (collection) =>
|
|
|
|
for level in collection.models
|
|
|
|
LevelsNode.levels[level.get('original')] = level
|
|
|
|
@settings.supermodel.registerModel level
|
2014-12-16 20:46:24 -05:00
|
|
|
mapped = ({label: r.get('name'), value: r.get('original')} for r in collection.models)
|
|
|
|
res(mapped)
|
|
|
|
|
|
|
|
|
|
|
|
class LevelNode extends TreemaObjectNode
|
|
|
|
valueClass: 'treema-level'
|
|
|
|
buildValueForDisplay: (valEl, data) ->
|
2014-12-29 15:46:14 -05:00
|
|
|
name = data.name
|
|
|
|
if data.requiresSubscription
|
|
|
|
name = "[P] " + name
|
|
|
|
|
|
|
|
status = ''
|
|
|
|
el = 'strong'
|
|
|
|
if data.adminOnly
|
|
|
|
status += " (disabled)"
|
|
|
|
el = 'span'
|
|
|
|
else if data.adventurer
|
|
|
|
status += " (adventurer)"
|
|
|
|
|
|
|
|
completion = ''
|
|
|
|
if data.tasks
|
|
|
|
completion = "#{(t for t in data.tasks when t.complete).length} / #{data.tasks.length}"
|
|
|
|
|
2015-01-02 15:36:47 -05:00
|
|
|
valEl.append $("<a href='/editor/level/#{_.string.slugify(data.name)}' class='spr'>(e)</a>")
|
2014-12-29 15:46:14 -05:00
|
|
|
valEl.append $("<#{el}></#{el}>").addClass('treema-shortened').text name
|
|
|
|
if status
|
|
|
|
valEl.append $('<em class="spl"></em>').text status
|
|
|
|
if completion
|
|
|
|
valEl.append $('<span class="completion"></span>').text completion
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-16 20:46:24 -05:00
|
|
|
populateData: ->
|
|
|
|
return if @data.name?
|
|
|
|
data = _.pick LevelsNode.levels[@keyForParent].attributes, Campaign.denormalizedLevelProperties
|
|
|
|
_.extend @data, data
|
2014-12-19 16:46:01 -05:00
|
|
|
|
|
|
|
class CampaignsNode extends TreemaObjectNode
|
|
|
|
valueClass: 'treema-campaigns'
|
|
|
|
@campaigns: {}
|
|
|
|
|
|
|
|
buildValueForDisplay: (valEl, data) ->
|
|
|
|
@buildValueForDisplaySimply valEl, ''+_.size(data)
|
|
|
|
|
|
|
|
childPropertiesAvailable: -> @childSource
|
|
|
|
|
|
|
|
childSource: (req, res) =>
|
|
|
|
s = new Backbone.Collection([], {model:Campaign})
|
|
|
|
s.url = '/db/campaign'
|
2014-12-28 16:25:20 -05:00
|
|
|
s.fetch({data: {term:req.term, project: Campaign.denormalizedCampaignProperties}})
|
2014-12-19 16:46:01 -05:00
|
|
|
s.once 'sync', (collection) ->
|
|
|
|
CampaignsNode.campaigns[campaign.id] = campaign for campaign in collection.models
|
|
|
|
mapped = ({label: r.get('name'), value: r.id} for r in collection.models)
|
|
|
|
res(mapped)
|
|
|
|
|
|
|
|
|
|
|
|
class CampaignNode extends TreemaObjectNode
|
|
|
|
valueClass: 'treema-campaign'
|
|
|
|
buildValueForDisplay: (valEl, data) ->
|
|
|
|
@buildValueForDisplaySimply valEl, data.name
|
|
|
|
|
|
|
|
populateData: ->
|
|
|
|
return if @data.name?
|
|
|
|
data = _.pick CampaignsNode.campaigns[@keyForParent].attributes, Campaign.denormalizedCampaignProperties
|
|
|
|
_.extend @data, data
|
2014-12-28 16:25:20 -05:00
|
|
|
|
2014-12-18 01:53:04 -05:00
|
|
|
class AchievementNode extends treemaExt.IDReferenceNode
|
|
|
|
buildSearchURL: (term) -> "#{@url}?term=#{term}&project=#{achievementProject.join(',')}"
|