Remove comments

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@54441 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-12-18 11:19:38 +00:00
parent 68b73fbe1e
commit 6d32a5ad44
1 changed files with 0 additions and 23 deletions

View File

@ -162,7 +162,6 @@ export class CommunityEditFormComponent implements OnInit{
console.log(community); console.log(community);
if (!Validator.hasValidEmails(community['managers']) || !this.hasFilled(community["name"])) { if (!Validator.hasValidEmails(community['managers']) || !this.hasFilled(community["name"])) {
// if (!this.hasValidEmail(community) || !this.hasFilled(community["name"])) {
this._router.navigate(['/community-edit-form'], {queryParams: { "communityId": this.communityId}}); this._router.navigate(['/community-edit-form'], {queryParams: { "communityId": this.communityId}});
} else { } else {
var newManagers = this.getNewManagers(); var newManagers = this.getNewManagers();
@ -303,28 +302,6 @@ export class CommunityEditFormComponent implements OnInit{
return false; return false;
} }
// private hasValidEmail(data: any): boolean {
// let length = data['managers'].length;
//
// for(let i = 0; i < length; i++) {
// if (!this.emailValidator(data['managers'][i])){
// // TODO remove console message after final testing
// console.log("INVALID EMAIL");
// return false;
// }
// }
// // TODO remove console message after final testing
// console.log("ALL EMAILS ARE VALID");
// return true;
// }
//
// private emailValidator(email : any): boolean {
// if (email.match("^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$"))
// return true;
// else
// return false;
// }
private change() { private change() {
this.hasChanged = true; this.hasChanged = true;
this.successfulSaveMessage = ''; this.successfulSaveMessage = '';