|
|
@@ -1118,6 +1118,14 @@
|
|
|
-(void) addtoportfolio
|
|
|
{
|
|
|
|
|
|
+ AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
|
|
|
+ if (appDelegate.offline_mode) {
|
|
|
+
|
|
|
+ [RAUtils message_alert:@"offline mode does not support this function." title:@"Add to Portfolio" controller:self] ;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
NSMutableDictionary* items =[[self.category_data objectForKey:@"items"] mutableCopy];
|
|
|
|
|
|
int count = [[items valueForKey:@"count"] intValue];
|
|
|
@@ -1133,6 +1141,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
if (!count) {
|
|
|
[RAUtils message_alert:@"There is no model." title:@"Cannot Add to portfolio." controller:self] ;
|
|
|
return;
|