Merge pull request #207 from taigaio/bug/1741/remove-tag-field-before-open-lightbox

fix #1741 - remove tag field before open lightbox
stable
Alejandro 2014-12-11 16:30:20 +01:00
commit 0d78482432
3 changed files with 8 additions and 0 deletions

View File

@ -259,6 +259,7 @@ CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope, lightboxService,
# Update texts for creation # Update texts for creation
$el.find(".button-green").html("Create") #TODO: i18n $el.find(".button-green").html("Create") #TODO: i18n
$el.find(".title").html("New user story ") #TODO: i18n $el.find(".title").html("New user story ") #TODO: i18n
$el.find(".tag-input").val("")
$el.find(".blocked-note").addClass("hidden") $el.find(".blocked-note").addClass("hidden")
$el.find("label.blocked").removeClass("selected") $el.find("label.blocked").removeClass("selected")
@ -274,6 +275,7 @@ CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope, lightboxService,
# Update texts for edition # Update texts for edition
$el.find(".button-green").html("Save") #TODO: i18n $el.find(".button-green").html("Save") #TODO: i18n
$el.find(".title").html("Edit user story ") #TODO: i18n $el.find(".title").html("Edit user story ") #TODO: i18n
$el.find(".tag-input").val("")
# Update requirement info (team, client or blocked) # Update requirement info (team, client or blocked)
if us.is_blocked if us.is_blocked

View File

@ -35,6 +35,8 @@ CreateIssueDirective = ($repo, $confirm, $rootscope, lightboxService, $loading)
$scope.issue = {} $scope.issue = {}
$scope.$on "issueform:new", (ctx, project)-> $scope.$on "issueform:new", (ctx, project)->
$el.find(".tag-input").val("")
lightboxService.open($el) lightboxService.open($el)
$scope.issue = { $scope.issue = {

View File

@ -42,6 +42,8 @@ CreateEditTaskDirective = ($repo, $model, $rs, $rootscope, $loading, lightboxSer
# Update texts for creation # Update texts for creation
$el.find(".button-green span").html("Create") #TODO: i18n $el.find(".button-green span").html("Create") #TODO: i18n
$el.find(".title").html("New task ") #TODO: i18n $el.find(".title").html("New task ") #TODO: i18n
$el.find(".tag-input").val("")
lightboxService.open($el) lightboxService.open($el)
$scope.$on "taskform:edit", (ctx, task) -> $scope.$on "taskform:edit", (ctx, task) ->
@ -51,6 +53,8 @@ CreateEditTaskDirective = ($repo, $model, $rs, $rootscope, $loading, lightboxSer
# Update texts for edition # Update texts for edition
$el.find(".button-green span").html("Save") #TODO: i18n $el.find(".button-green span").html("Save") #TODO: i18n
$el.find(".title").html("Edit task ") #TODO: i18n $el.find(".title").html("Edit task ") #TODO: i18n
$el.find(".tag-input").val("")
lightboxService.open($el) lightboxService.open($el)