Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
debugging issues with auth button
Browse files Browse the repository at this point in the history
  • Loading branch information
zagraves committed Sep 25, 2009
1 parent ab7dcde commit a58e0e2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions yupdates_menu.php
Expand Up @@ -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;

Expand All @@ -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">
Expand Down

0 comments on commit a58e0e2

Please sign in to comment.