Commit c26bc962 authored by A. Wilcox's avatar A. Wilcox

iUI: NewItemVC: Use tags/materials code from ItemVC, it's the same now.

parent e81620d0
......@@ -128,7 +128,11 @@ extern const char *site_names[3];
[changedKeys setObject:[NSValue valueWithPointer:shipping_services] forKey:kItemPropertyShipping];
if(site->siteCode() == SITE_ETSY)
{
[changedKeys setObject:[NSNumber numberWithInt:1] forKey:kItemPropertyType];
[changedKeys setObject:[NSMutableArray array] forKey:kItemPropertyTags];
[changedKeys setObject:[NSMutableArray array] forKey:kItemPropertyMaterials];
}
else
[changedKeys setObject:[NSNumber numberWithInt:0] forKey:kItemPropertyType];
......@@ -1287,6 +1291,8 @@ extern const char *site_names[3];
case CELLTAG_CATEGORY:
case CELLTAG_CONDITION:
case CELLTAG_SHOPSECTION:
case CELLTAG_TAGS:
case CELLTAG_MATERIALS:
{
[super tableView:tableView didSelectRowAtIndexPath:indexPath];
break;
......@@ -1414,38 +1420,6 @@ extern const char *site_names[3];
[pickerController release];
break;
}
case CELLTAG_TAGS:
{
assert(site->siteCode() == SITE_ETSY);
if([changedKeys objectForKey:kItemPropertyTags] == nil)
[changedKeys setObject:[NSMutableArray array] forKey:kItemPropertyTags];
WTPrettyListViewController *tagList = [[WTPrettyListViewController alloc] initWithList:[changedKeys objectForKey:kItemPropertyTags]];
tagList.maxItems = 13;
tagList.objectName = @"Tag";
tagList.title = @"Listing Tags";
[self.navigationController pushViewController:tagList animated:YES];
[tagList release];
break;
}
case CELLTAG_MATERIALS:
{
assert(site->siteCode() == SITE_ETSY);
if([changedKeys objectForKey:kItemPropertyMaterials] == nil)
[changedKeys setObject:[NSMutableArray array] forKey:kItemPropertyMaterials];
WTPrettyListViewController *materialList = [[WTPrettyListViewController alloc] initWithList:[changedKeys objectForKey:kItemPropertyMaterials]];
materialList.maxItems = 13;
materialList.objectName = @"Material";
materialList.title = @"Materials";
[self.navigationController pushViewController:materialList animated:YES];
[materialList release];
break;
}
}
switch (indexPath.section)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment