Skip to content

Commit

Permalink
Fixes issue for non-site template validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehamai committed Apr 18, 2015
1 parent cba30b5 commit 80b12bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Slingshot.Api/ng/Scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,9 @@ angular.module('formApp', ['ngAnimate', 'ui.router'])
return false;
}

// If we're dealing with a site, and the name is not available, we can't go to next step
if (!$scope.formData.siteName ||
// If we're dealing with a site, and the name is not available, we can't go to next step.
// In the case of non-site template, siteName will be undefined.
if ($scope.formData.siteName === "" ||
($scope.formData.siteName &&
(!$scope.formData.siteNameAvailable || $scope.formData.siteName != $scope.formData.siteNameQuery))) {
isValid = false;
Expand Down

0 comments on commit 80b12bd

Please sign in to comment.