fix #42 - create project button in safari

stable
Juanfran 2014-10-06 08:09:09 +02:00
parent 5b8f0663b9
commit f35a6eaf0a
5 changed files with 11 additions and 7 deletions

View File

@ -46,9 +46,10 @@ class LightboxService extends taiga.Service
docEl.off(".keyboard-navigation") # Hack: to fix problems in the WYSIWYG textareas when press ENTER
$el.one "transitionend", =>
$el.css('display', 'none')
$el.removeAttr('style')
$el.removeClass("open").removeClass('close')
$el.removeClass("open")
$el.addClass('close')
closeAll: ->
docEl = angular.element(document)

View File

@ -59,7 +59,8 @@ class ProjectsNavigationController extends taiga.Controller
return projects
newProject: ->
@rootscope.$broadcast("projects:create")
@scope.$apply () =>
@rootscope.$broadcast("projects:create")
filterProjects: (text) ->
@scope.filteredProjects = _.filter @scope.projects, (project) ->

View File

@ -67,8 +67,7 @@ CreateProject = ($rootscope, $repo, $confirm, $location, $navurls, $rs, $project
$scope.templates = result
$scope.data.creation_template = _.head(_.filter($scope.templates, (x) -> x.slug == "scrum")).id
else
$scope.$apply ->
$scope.data.creation_template = _.head(_.filter($scope.templates, (x) -> x.slug == "scrum")).id
$scope.data.creation_template = _.head(_.filter($scope.templates, (x) -> x.slug == "scrum")).id
$el.find(".active").removeClass("active")
$el.find(".create-step1").addClass("active")

View File

@ -3,7 +3,7 @@
include ../components/spinner
p Loading project...
div.wizard-create-project.hidden(tg-lb-create-project)
div.wizard-create-project(tg-lb-create-project)
include wizard-create-project
nav.projects-nav(ng-controller="ProjectsNavigationController", tg-projects-nav, tg-projects-pagination, projects="projects")

View File

@ -1,7 +1,6 @@
.lightbox,
%lightbox {
@include background-opacity($white, .95);
@include transition (opacity .3s ease);
bottom: 0;
display: none;
left: 0;
@ -21,6 +20,10 @@
@include transition (opacity .3s ease);
opacity: 1;
}
&.close {
@include transition (opacity .3s ease);
opacity: 0;
}
.title {
text-align: center;
}