diff options
author | matthew <matthew> | 2008-10-23 15:39:05 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-10-23 15:39:05 +0000 |
commit | 0b76d795a53213e3103efcbc4c4b444803db3d68 (patch) | |
tree | 57413f3a49b2b007e00e93af969d8f31880b1f5c /iphone/FixMyStreet/Classes/InputTableViewController.m | |
parent | 008565200b6e6997534525d62d084c627b6d2bc9 (diff) |
Remove image/subject on successful upload; make sure checkmarks are up to date.
Diffstat (limited to 'iphone/FixMyStreet/Classes/InputTableViewController.m')
-rw-r--r-- | iphone/FixMyStreet/Classes/InputTableViewController.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/iphone/FixMyStreet/Classes/InputTableViewController.m b/iphone/FixMyStreet/Classes/InputTableViewController.m index d1822d22b..8af16bac5 100644 --- a/iphone/FixMyStreet/Classes/InputTableViewController.m +++ b/iphone/FixMyStreet/Classes/InputTableViewController.m @@ -119,6 +119,8 @@ if (indexPath.section == 0) { if (delegate.image) { cell.accessoryType = UITableViewCellAccessoryCheckmark; + } else { + cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; } cell.text = @"Take photo"; actionTakePhotoCell = cell; @@ -131,6 +133,8 @@ [activityView startAnimating]; cell.accessoryView = activityView; [activityView release]; + } else { + cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; } cell.text = @"Fetch location"; actionFetchLocationCell = cell; @@ -302,7 +306,10 @@ if (!delegate.name || !delegate.email) { [self gotoSettings:nil firstTime:YES]; } else { - [delegate uploadReport]; + BOOL success = [delegate uploadReport]; + if (success) + imageView.image = nil; + [actionsToDoView reloadData]; } } |