bind estimationProcess to a dom element
parent
36ca7657ee
commit
646137c0c6
|
@ -224,7 +224,12 @@ EstimationsService = ($template, $qqueue, $repo, $confirm, $q) ->
|
||||||
@$el.find(".pop-points-open").show()
|
@$el.find(".pop-points-open").show()
|
||||||
|
|
||||||
create = ($el, us, project) ->
|
create = ($el, us, project) ->
|
||||||
estimationProcess = new EstimationProcess($el, us, project)
|
estimationProcess = $el.data("estimationProcess")
|
||||||
|
|
||||||
|
if !estimationProcess
|
||||||
|
estimationProcess = new EstimationProcess($el, us, project)
|
||||||
|
$el.data("estimationProcess", estimationProcess)
|
||||||
|
|
||||||
if estimationProcess.isEditable
|
if estimationProcess.isEditable
|
||||||
estimationProcess.bindClickEvents()
|
estimationProcess.bindClickEvents()
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue