Removed unnecesary code

stable
Jesús Espino 2014-10-21 09:48:53 +02:00 committed by David Barragán Merino
parent 0ec7e2dc25
commit 4feaa08364
1 changed files with 0 additions and 8 deletions

View File

@ -539,10 +539,6 @@ UsTeamRequirementButtonDirective = ($rootscope, $tgrepo, $confirm, $loading) ->
promise.then =>
$loading.finish($el.find("label"))
$rootscope.$broadcast("history:reload")
if us.team_requirement
$el.find('.team-requirement').addClass('active')
else
$el.find('.team-requirement').removeClass('active')
promise.then null, ->
$loading.finish($el.find("label"))
$confirm.notify("error")
@ -600,10 +596,6 @@ UsClientRequirementButtonDirective = ($rootscope, $tgrepo, $confirm, $loading) -
promise.then =>
$loading.finish($el.find("label"))
$rootscope.$broadcast("history:reload")
if us.client_requirement
$el.find('.client-requirement').addClass('active')
else
$el.find('.client-requirement').removeClass('active')
promise.then null, ->
$loading.finish($el.find("label"))
$confirm.notify("error")