|
@@ -3756,7 +3756,7 @@
|
|
|
[self.tableView reloadEmptyDataSet];
|
|
|
|
|
|
// scrollToFileNamePath
|
|
|
- if (self.scrollToFileNamePath != nil && withScrollToFileName) {
|
|
|
+ if (self.scrollToFileNamePath != nil) {
|
|
|
for (NSString *key in sectionDataSource.allRecordsDataSource) {
|
|
|
tableMetadata *metadata = [sectionDataSource.allRecordsDataSource objectForKey:key];
|
|
|
NSString *metadataFileNamePath = [NSString stringWithFormat:@"%@/%@", metadata.serverUrl, metadata.fileName];
|
|
@@ -3765,15 +3765,22 @@
|
|
|
if ([key isEqualToString:metadata.fileID]) {
|
|
|
NSIndexPath *indexPath = [sectionDataSource.fileIDIndexPath objectForKey:key];
|
|
|
[self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
|
|
|
- [self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
|
|
|
- [self.tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
|
+ CCCellMain *cell = [self.tableView cellForRowAtIndexPath:indexPath];
|
|
|
+ if (cell) {
|
|
|
+ cell.layer.borderWidth = 1;
|
|
|
+ cell.layer.borderColor = [[NCBrandColor sharedInstance] brand].CGColor;
|
|
|
+ dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
|
|
|
+ cell.layer.borderWidth = 0;
|
|
|
+ cell.layer.borderColor = [UIColor clearColor].CGColor;
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ self.scrollToFileNamePath = nil;
|
|
|
}
|
|
|
}
|
|
|
- self.scrollToFileNamePath = nil;
|
|
|
}
|
|
|
}
|
|
|
|