Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

debugging issues with auth button

  • Loading branch information...
commit a58e0e262728590fc2c7b463dbe8d170b83b3d23 1 parent ab7dcde
@zachgraves zachgraves authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 yupdates_menu.php
View
9 yupdates_menu.php
@@ -63,7 +63,7 @@ function yupdates_menu() {
<?php
if($session->application && $session->hasSession) {
echo <<<HTML
-You have already authorized the Yahoo! Updates plugin.
+You have authorized the Yahoo! Updates plugin.
<form method="post">
HTML;
@@ -90,8 +90,11 @@ function yupdates_menu() {
<script type="text/javascript">
var _gel = function(el) {return document.getElementById(el)};
var _yupdates_auth_url = "<?php echo $auth_url; ?>";
- var _yupdates_authorize = function() {
- if(_yupdates_auth_url != "") PopupManager.open(_yupdates_auth_url,600,435);
+
+ function _yupdates_authorize() {
+ if(_yupdates_auth_url != "")
+ PopupManager.open(_yupdates_auth_url,600,435);
+ else alert("Error: No request token / auth url");
}
</script>
<script type="text/javascript">
Please sign in to comment.
Something went wrong with that request. Please try again.