| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 25c601a commit 2a00a73
19 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,8 @@ | |||
| 31 | 31 | 3A3878401AE295970078D5DE /* ResetLabelCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A38783F1AE295970078D5DE /* ResetLabelCell.m */; }; | |
| 32 | 32 | 3A3878451AE296240078D5DE /* EditLabelCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878421AE296240078D5DE /* EditLabelCell.m */; }; | |
| 33 | 33 | 3A3878461AE296240078D5DE /* EditLabelHeadCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878441AE296240078D5DE /* EditLabelHeadCell.m */; }; | |
| 34 | + 3A3878491AE36ED70078D5DE /* TopicListButton.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A3878481AE36ED70078D5DE /* TopicListButton.m */; }; | ||
| 35 | + 3A38784C1AE36EF00078D5DE /* TopicListView.m in Sources */ = {isa = PBXBuildFile; fileRef = 3A38784B1AE36EF00078D5DE /* TopicListView.m */; }; | ||
| 34 | 36 | 4E03AC9A1A5BDDF9002B000B /* STARTIMAGE.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 4E03AC991A5BDDF9002B000B /* STARTIMAGE.jpg */; }; | |
| 35 | 37 | 4E03ACA01A5CEB41002B000B /* taskDeadline@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E03AC9E1A5CEB41002B000B /* taskDeadline@2x.png */; }; | |
| 36 | 38 | 4E03ACA11A5CEB41002B000B /* taskProgress@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4E03AC9F1A5CEB41002B000B /* taskProgress@2x.png */; }; | |
@@ -651,6 +653,10 @@ | |||
| 651 | 653 | 3A3878421AE296240078D5DE /* EditLabelCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditLabelCell.m; sourceTree = "<group>"; }; | |
| 652 | 654 | 3A3878431AE296240078D5DE /* EditLabelHeadCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EditLabelHeadCell.h; sourceTree = "<group>"; }; | |
| 653 | 655 | 3A3878441AE296240078D5DE /* EditLabelHeadCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EditLabelHeadCell.m; sourceTree = "<group>"; }; | |
| 656 | + 3A3878471AE36ED70078D5DE /* TopicListButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TopicListButton.h; sourceTree = "<group>"; }; | ||
| 657 | + 3A3878481AE36ED70078D5DE /* TopicListButton.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TopicListButton.m; sourceTree = "<group>"; }; | ||
| 658 | + 3A38784A1AE36EF00078D5DE /* TopicListView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TopicListView.h; sourceTree = "<group>"; }; | ||
| 659 | + 3A38784B1AE36EF00078D5DE /* TopicListView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TopicListView.m; sourceTree = "<group>"; }; | ||
| 654 | 660 | 3B024F2227BD4152BC7C9A7A /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; | |
| 655 | 661 | 4E03AC991A5BDDF9002B000B /* STARTIMAGE.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = STARTIMAGE.jpg; sourceTree = "<group>"; }; | |
| 656 | 662 | 4E03AC9E1A5CEB41002B000B /* taskDeadline@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "taskDeadline@2x.png"; sourceTree = "<group>"; }; | |
@@ -2931,6 +2937,10 @@ | |||
| 2931 | 2937 | 8EA6D0F419E240C40076D59C /* ProjectTasksView.m */, | |
| 2932 | 2938 | 8EA6D0F919E240C40076D59C /* ProjectTopicsView.h */, | |
| 2933 | 2939 | 8EA6D0FA19E240C40076D59C /* ProjectTopicsView.m */, | |
| 2940 | + 3A38784A1AE36EF00078D5DE /* TopicListView.h */, | ||
| 2941 | + 3A38784B1AE36EF00078D5DE /* TopicListView.m */, | ||
| 2942 | + 3A3878471AE36ED70078D5DE /* TopicListButton.h */, | ||
| 2943 | + 3A3878481AE36ED70078D5DE /* TopicListButton.m */, | ||
| 2934 | 2944 | 8EA6D0E919E240C40076D59C /* ProjectActivityListView.h */, | |
| 2935 | 2945 | 8EA6D0EA19E240C40076D59C /* ProjectActivityListView.m */, | |
| 2936 | 2946 | 8EA6D0EF19E240C40076D59C /* ProjectTaskListView.h */, | |
@@ -3681,13 +3691,15 @@ | |||
| 3681 | 3691 | 0AB591AC1AB6D2F60076C454 /* TweetSendLocaitonMapViewController.m in Sources */, | |
| 3682 | 3692 | 4EA7F1611A6D192B00A046BD /* UIButton+WebCache.m in Sources */, | |
| 3683 | 3693 | 8EE72BE419E3F2E8002C11D9 /* SDWebImageManager+MJ.m in Sources */, | |
| 3694 | + 3A38784C1AE36EF00078D5DE /* TopicListView.m in Sources */, | ||
| 3684 | 3695 | 8E1C3DEA19E7D58A00EF3032 /* AbstractActionSheetPicker.m in Sources */, | |
| 3685 | 3696 | 8EA6D1AF19E240C40076D59C /* CodingTips.m in Sources */, | |
| 3686 | 3697 | 8EF643C219FF7E2900F7EEB0 /* TaskCommentTopCell.m in Sources */, | |
| 3687 | 3698 | 8E64ED7D19ED0CE3006E99DA /* QBAssetsCollectionOverlayView.m in Sources */, | |
| 3688 | 3699 | 8EA6D14919E240C40076D59C /* UserTweetsViewController.m in Sources */, | |
| 3689 | 3700 | 4ECE8AD71A3943E80021E29C /* DownMenuCell.m in Sources */, | |
| 3690 | 3701 | 4E6C41201A846AC30098DC17 /* RFToolbarButton.m in Sources */, | |
| 3702 | + 3A3878491AE36ED70078D5DE /* TopicListButton.m in Sources */, | ||
| 3691 | 3703 | 4ECE8B011A3946C10021E29C /* ImageSizeManager.m in Sources */, | |
| 3692 | 3704 | 8EA6D1B319E240C40076D59C /* File.m in Sources */, | |
| 3693 | 3705 | 4EABD25A1AD3CB4A005E515F /* UIMessageInputView_CCell.m in Sources */, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -106,6 +106,12 @@ - (NSString *)toLabelPath | |||
| 106 | 106 | return [NSString stringWithFormat:@"api/project/%d/topic/label?", _curProTopic.project_id.intValue]; | |
| 107 | 107 | } | |
| 108 | 108 | ||
| 109 | + - (NSString *)toDelPath:(NSInteger)index | ||
| 110 | + { | ||
| 111 | + ProjectTopicLabel *ptLabel = [_labels objectAtIndex:index]; | ||
| 112 | + return [NSString stringWithFormat:@"api/project/%d/topic/label/%lld", _curProTopic.project_id.intValue, ptLabel.id.longLongValue]; | ||
| 113 | + } | ||
| 114 | + | ||
| 109 | 115 | #pragma mark - click | |
| 110 | 116 | - (void)okBtnClick | |
| 111 | 117 | { | |
@@ -272,8 +278,7 @@ - (void)renameLabel:(NSInteger)index | |||
| 272 | 278 | - (void)deleteLabel:(NSInteger)index | |
| 273 | 279 | { | |
| 274 | 280 | __weak typeof(self) weakSelf = self; | |
| 275 | - ProjectTopicLabel *ptLabel = [_labels objectAtIndex:index]; | ||
| 276 | - [[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_Del_WithPath:[ptLabel toDelPath] andBlock:^(id data, NSError *error) { | ||
| 281 | + [[Coding_NetAPIManager sharedManager] request_ProjectTopicLabel_Del_WithPath:[self toDelPath:index] andBlock:^(id data, NSError *error) { | ||
| 277 | 282 | if (!error) { | |
| 278 | 283 | [weakSelf.labels removeObjectAtIndex:index]; | |
| 279 | 284 | [weakSelf.myTableView reloadData]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments