bind estimationProcess to a dom element

stable
Juanfran 2015-03-12 12:00:24 +01:00
parent 36ca7657ee
commit 646137c0c6
1 changed files with 6 additions and 1 deletions

View File

@ -224,7 +224,12 @@ EstimationsService = ($template, $qqueue, $repo, $confirm, $q) ->
@$el.find(".pop-points-open").show()
create = ($el, us, project) ->
estimationProcess = $el.data("estimationProcess")
if !estimationProcess
estimationProcess = new EstimationProcess($el, us, project)
$el.data("estimationProcess", estimationProcess)
if estimationProcess.isEditable
estimationProcess.bindClickEvents()
else