Skip to content

Commit

Permalink
Fixed animations on registrationForm
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Westergaard Lassen committed Sep 11, 2012
1 parent de7f00e commit 92224c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sc-web/src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
</div>
</div>
<hr/>
<div class="well" ng-show="selectedRegistration">
<div id="registrationForm" class="well">
<button class="close" type="button" ng-click="hideRegistration()">x</button>
<div class="row-fluid" cave-registration="selectedRegistration">
<div class="span8">
Expand Down
11 changes: 5 additions & 6 deletions sc-web/src/main/webapp/js/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,21 @@ module.controller("IdentityCtrl", function($scope, $location, $log, $http) {
$scope.$watch("identity", function(newValue, oldValue) {
$scope.selectedRegistration = undefined
if (newValue) {
$("#identity").slideUp()
$("#identity").hide()
$("#identity").slideDown()
}
else {
$("#identity").slideUp()
$("#identity").hide()
}
})
$scope.$watch("selectedRegistration", function(newValue, oldValue) {
if (newValue) {
$("#conceptBrowser").hide()
$scope.selectedRegistration = newValue
$("#conceptBrowser").slideDown()
$("#registrationForm").hide()
$("#registrationForm").slideDown("slow")

}
else {
$("#conceptBrowser").slideUp()
$("#registrationForm").hide()
}
})
})
Expand Down

0 comments on commit 92224c5

Please sign in to comment.