]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ok, got the AJAX clicky-throughs working for yammer auth (if app is already registere...
authorBrion Vibber <brion@pobox.com>
Mon, 27 Sep 2010 19:34:01 +0000 (12:34 -0700)
committerBrion Vibber <brion@pobox.com>
Tue, 28 Sep 2010 14:44:25 +0000 (07:44 -0700)
plugins/YammerImport/actions/yammeradminpanel.php
plugins/YammerImport/lib/yammerauthverifyform.php

index 71651cdf5667050ce8738979375f517ab7df1a67..fdf7a084f4db0397a1b317e1426e7633b7e92f52 100644 (file)
@@ -76,7 +76,7 @@ class YammeradminpanelAction extends AdminPanelAction
                 return $this->showAjaxForm($form);
             } else if ($this->verify_token) {
                 $this->runner->saveAuthToken($this->verify_token);
-                $form = new YammerAuthProgressForm();
+                $form = new YammerProgressForm($this, $this->runner);
                 return $this->showAjaxForm($form);
             } else {
                 throw new ClientException('Invalid POST');
index dc9d2ce1b205d6dd63fee8a63bfa1d2a17e31814..96decea1027a53440b0dc680fa5d8271a4f25730 100644 (file)
@@ -65,8 +65,17 @@ class YammerAuthVerifyForm extends Form
     function formData()
     {
         $this->out->input('verify_token', _m('Verification code:'), '', _m("Click through and paste the code it gives you below..."));
+        
+        // iframe would be nice to avoid leaving -- since they don't seem to have callback url O_O
+        /*
         $this->out->element('iframe', array('id' => 'yammer-oauth',
                                             'src' => $this->runner->getAuthUrl()));
+        */
+        // yeah, it ignores the callback_url
+        $this->out->element('a',
+            array('href' => $this->runner->getAuthUrl(),
+                  'target' => '_blank'),
+            'clicky click');
     }
 
     /**