bashofmann

removed not needed js stuff from example

@@ -44,7 +44,6 @@ $token = $dataStore->retrieveAccessToken(); @@ -44,7 +44,6 @@ $token = $dataStore->retrieveAccessToken();
44 ?> 44 ?>
45 <html> 45 <html>
46 <head> 46 <head>
47 - <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>  
48 </head> 47 </head>
49 <body> 48 <body>
50 Consumer Key: <input type="text" id="consumer-key" value="<?= $client->getClientKey() ?>" /><br /> 49 Consumer Key: <input type="text" id="consumer-key" value="<?= $client->getClientKey() ?>" /><br />
@@ -53,16 +52,8 @@ $token = $dataStore->retrieveAccessToken(); @@ -53,16 +52,8 @@ $token = $dataStore->retrieveAccessToken();
53 Refresh Token: <input type="text" id="refresh-token" value="<?= $token->getRefreshToken() ?>" /><br /> 52 Refresh Token: <input type="text" id="refresh-token" value="<?= $token->getRefreshToken() ?>" /><br />
54 LifeTime: <input type="text" id="lifetime" value="<?= $token->getLifeTime() ?>" /><br /> 53 LifeTime: <input type="text" id="lifetime" value="<?= $token->getLifeTime() ?>" /><br />
55 <br /> 54 <br />
56 - <a href="javascript:;" id="authorize">authorize</a><br /> 55 + <a href="example.php?action=authorize" id="authorize">authorize</a><br />
57 <br /> 56 <br />
58 - <a href="javascript:;" id="request-api">request API</a><br /> 57 + <a href="example.php?action=requestApi" id="request-api">request API</a><br />
59 - <script type="text/javascript">  
60 - $('#authorize').click(function() {  
61 - window.location.href = 'index.php?action=authorize';  
62 - });  
63 - $('#request-api').click(function() {  
64 - window.location.href = 'index.php?action=requestApi';  
65 - });  
66 - </script>  
67 </body> 58 </body>
68 </html> 59 </html>