Changeset 2e79fbc in orbit for iOS


Ignore:
Timestamp:
08/29/13 06:14:50 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo, Tab_Interface, pyramid
Children:
99d222a
Parents:
c76cf7b
Message:

Support:

  • Launch support and forum pages in Safari
Location:
iOS/Orbit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • iOS/Orbit/Orbit/controllers/SupportViewController.m

    rcef53d8 r2e79fbc  
    2828} 
    2929 
     30//UIWebView *description; 
     31//@synthesize description; 
     32 
    3033#define BASEURL [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]] 
    3134- (void) loadSupportSite 
     
    3437//    [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString: @"http://orbit.puzzlebox.info/contact"]]]; 
    3538 
     39//   [description loadHTMLString:string baseURL:nil]; 
     40//   description.delegate = self; 
    3641    
    3742   NSString *urlAddress = [[NSBundle mainBundle] pathForResource:@"support" ofType:@"html"]; 
     
    4348    
    4449} 
     50 
     51 
     52-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType { 
     53   if ( inType == UIWebViewNavigationTypeLinkClicked ) { 
     54      [[UIApplication sharedApplication] openURL:[inRequest URL]]; 
     55      return NO; 
     56   } 
     57    
     58   return YES; 
     59} 
     60 
     61 
     62//-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType { 
     63//   if ( inType == UIWebViewNavigationTypeLinkClicked ) { 
     64//      NSURL *url = [inRequest URL]; 
     65//      if ([[url absoluteString] rangeOfString:@"tracker"].location == NSNotFound) { 
     66//         [[UIApplication sharedApplication] openURL:[inRequest URL]]; 
     67//         return NO; 
     68//      } 
     69//   } 
     70//   return YES; 
     71//} 
     72 
    4573 
    4674#pragma mark UIWebViewDelegate methods 
  • iOS/Orbit/tutorial/support.html

    rc76cf7b r2e79fbc  
    126126               <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://orbit.puzzlebox.info/wp-includes/wlwmanifest.xml" /> 
    127127               <link rel='next' title='Orbit' href='http://orbit.puzzlebox.info/' /> 
    128  
     128                
    129129               <link rel='canonical' href='http://orbit.puzzlebox.info/contact/' /> 
    130130               <style type='text/css'> 
     
    147147                
    148148               <ul> 
     149                
     150                
    149151               <li>For support queries please post to our <strong><a href="http://orbit.puzzlebox.info/forums/">forums</a></strong> or file a ticket in our <strong><a href="http://orbit.puzzlebox.info/development/">development tracker</a></strong></li> 
     152                
     153                
     154               <!-- 
     155               <li>For support queries please post to our forums or file a ticket in our development tracker</a></strong></li> 
     156               --> 
     157                
     158                
    150159               </ul> 
    151160                
     
    163172                
    164173               <li class="textarea"><label for="commentsText">Message:</label> 
    165                <textarea name="comments" id="commentsText" rows="20" cols="30" class="required requiredField form.nice textarea"></textarea> 
     174               <textarea name="comments" id="commentsText" rows="2" cols="30" class="required requiredField form.nice textarea"></textarea> 
    166175               </li> 
    167176                
     
    230239               </div> 
    231240                
    232  
     241                
    233242               </div> 
    234243                
Note: See TracChangeset for help on using the changeset viewer.