Commits

Ivan Andrus  committed dae5076

Fixed bug where input wasn't saved with bad internet connection

  • Participants
  • Parent commits 6abb993

Comments (0)

Files changed (1)

File Classes/EditViewController.m

 
 
 - (void)eval:(id)sender {
+    [selectedObject setValue:[inputView text] forKey:@"input"];
+    [selectedObject setValue:[NSNumber numberWithInt:AlephCellStatusHasInput] forKey:@"status"];
     if ( !isLoaded ) {
         shouldLoad = YES;
+
     } else {
-        [selectedObject setValue:[inputView text] forKey:@"input"];
-        [selectedObject setValue:[NSNumber numberWithInt:AlephCellStatusHasInput] forKey:@"status"];
         [outputView stringByEvaluatingJavaScriptFromString:
          [NSString stringWithFormat:@"isageSetAndEval(%@)",
           [[inputView text] JSONString]]];