Commits

Mohamad Saeedi committed 4800515 Merge

Merge branch 'topic-MOBILE-193'

Comments (0)

Files changed (1)

Classes/UserInterface/View Controllers/Settings/AccountViewController.m

         usernameError = ![username isNotEmpty];
     }
     
-    return !hostnameError && !portIsInvalid && !usernameError; 
+    NSString *serviceDoc = [model objectForKey:kAccountServiceDocKey];
+    BOOL serviceDocError = ![serviceDoc isNotEmpty];
+    
+    return !hostnameError && !portIsInvalid && !usernameError && !serviceDocError; 
 }
 
 /**
         
         IFTextCellController *serviceDocumentCell = [[[IFTextCellController alloc] initWithLabel:NSLocalizedString(@"accountdetails.fields.servicedoc", @"Service Document") andPlaceholder:@"" 
                                                                                            atKey:kAccountServiceDocKey inModel:self.model] autorelease];
+        [serviceDocumentCell setUpdateTarget:self];
+        [serviceDocumentCell setEditChangedAction:@selector(textValueChanged:)];
         [serviceDocumentCell setReturnKeyType:UIReturnKeyDone];
         
         advancedGroup = [NSArray arrayWithObjects:portCell, serviceDocumentCell, nil];