diff --git a/app/coffee/modules/backlog/lightboxes.coffee b/app/coffee/modules/backlog/lightboxes.coffee
index 1c15f82b..b2ff728d 100644
--- a/app/coffee/modules/backlog/lightboxes.coffee
+++ b/app/coffee/modules/backlog/lightboxes.coffee
@@ -19,6 +19,9 @@
# File: modules/backlog/lightboxes.coffee
###
+taiga = @.taiga
+bindOnce = @.taiga.bindOnce
+
CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope) ->
editDescription = ($scope, $el) ->
@@ -182,6 +185,11 @@ CreateSprint = ($repo, $rs, $rootscope) ->
estimated_finish: null
}
+ lastSprintNameDom = $el.find(".last-sprint-name")
+ sprintName = $scope.sprints?[0].name
+ if sprintName?
+ lastSprintNameDom.text(" last sprint is #{sprintName} ;-) ")
+
$el.on "click", ".close", (event) ->
event.preventDefault()
$el.addClass("hidden")
diff --git a/app/partials/views/modules/lightbox_add-sprint.jade b/app/partials/views/modules/lightbox_add-sprint.jade
index da25927d..6afdda3a 100644
--- a/app/partials/views/modules/lightbox_add-sprint.jade
+++ b/app/partials/views/modules/lightbox_add-sprint.jade
@@ -3,7 +3,7 @@ a.close(href="", title="close")
form
h2.title New Sprint
fieldset
- label.last-sprint-name last sprint is {{sprintname}} ;-)
+ label.last-sprint-name
input(ng-model="sprint.name", type="text", placeholder="sprint name", name="name", data-required="true")
fieldset.dates
input.date-start(tg-date-selector, ng-model="sprint.estimated_start", type="text", placeholder="Estimated Start", data-required="true")