diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-01-18 06:12:47 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-01-18 06:12:47 +0000 |
commit | 8fdf888edbd74e707d2698c7625dc90b22f0aeef (patch) | |
tree | 72af2801ce38ae37064e9f14a3bf47597d0d963f /actions | |
parent | 3e18c2f0f8bbab01e16f66254dc9eadc9e1ffd60 (diff) |
trac750 Javascript file for Facebook app
Diffstat (limited to 'actions')
-rw-r--r-- | actions/facebooksettings.php | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/actions/facebooksettings.php b/actions/facebooksettings.php index eafd91123..372c40c28 100644 --- a/actions/facebooksettings.php +++ b/actions/facebooksettings.php @@ -68,19 +68,18 @@ class FacebooksettingsAction extends FacebookAction $this->showHeader('Settings', $msg, $success); - common_element_start('fb:if-section-not-added', array('section' => 'profile')); - common_element('h2', null, _('Add an Identi.ca box to my profile')); + common_element('form', array('id' => 'redirect_form', + 'style' => 'display: none;')); + common_element_start('p'); - common_element('fb:add-section-button', array('section' => 'profile')); - common_element_end('p'); - - common_element_end('fb:if-section-not-added'); - common_element_start('p'); - common_element_start('fb:prompt-permission', array('perms' => 'status_update')); + common_element_start('fb:prompt-permission', array('perms' => 'status_update', + 'next_fbjs' => 'redirectSettings()')); common_element('h2', null, _('Allow Identi.ca to update my Facebook status')); common_element_end('fb:prompt-permission'); common_element_end('p'); + + if ($facebook->api_client->users_hasAppPermission('status_update')) { common_element_start('form', array('method' => 'post', @@ -94,8 +93,6 @@ class FacebooksettingsAction extends FacebookAction common_checkbox('replysync', _('Send local "@" replies to Facebook.'), ($flink) ? ($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY) : true); - // function common_input($id, $label, $value=null,$instructions=null) - $prefix = $facebook->api_client->data_getUserPreference(1); |