Merge branch '0.9.x' into forward

This commit is contained in:
Evan Prodromou 2009-12-11 09:58:53 -05:00
commit 4919671bbd
4 changed files with 21 additions and 28 deletions

View File

@ -92,11 +92,23 @@ class GravatarPlugin extends Plugin
function onStartAvatarSaveForm($action) { function onStartAvatarSaveForm($action) {
if ($action->arg('add')) { if ($action->arg('add')) {
$result = $this->gravatar_save(); $result = $this->gravatar_save();
if($result['success']===true) {
common_broadcast_profile(common_current_user()->getProfile());
}
$action->showForm($result['message'], $result['success']); $action->showForm($result['message'], $result['success']);
return false; return false;
} else if ($action->arg('remove')) { } else if ($action->arg('remove')) {
$result = $this->gravatar_remove(); $result = $this->gravatar_remove();
if($result['success']===true) {
common_broadcast_profile(common_current_user()->getProfile());
}
$action->showForm($result['message'], $result['success']); $action->showForm($result['message'], $result['success']);
return false; return false;
} else { } else {
return true; return true;

View File

@ -670,8 +670,7 @@ display:block;
text-align:left; text-align:left;
width:100%; width:100%;
} }
.entity_actions a, .entity_actions a {
.entity_remote_subscribe {
text-decoration:none; text-decoration:none;
font-weight:bold; font-weight:bold;
display:block; display:block;
@ -696,14 +695,6 @@ padding-left:23px;
padding:2px 4px 1px 26px; padding:2px 4px 1px 26px;
} }
.entity_remote_subscribe {
padding:4px;
border-width:2px;
border-style:solid;
border-radius:4px;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
.entity_actions .accept { .entity_actions .accept {
margin-bottom:18px; margin-bottom:18px;
} }

View File

@ -30,8 +30,7 @@ border-radius:4px;
input, textarea, select, option { input, textarea, select, option {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
} }
input, textarea, select, input, textarea, select {
.entity_remote_subscribe {
border-color:#AAAAAA; border-color:#AAAAAA;
} }
@ -56,14 +55,12 @@ background:none;
} }
.form_notice.warning #notice_text-count, .form_notice.warning #notice_text-count,
.form_settings .form_note, .form_settings .form_note {
.entity_remote_subscribe {
background-color:#9BB43E; background-color:#9BB43E;
} }
input.submit, input.submit,
.form_notice.warning #notice_text-count, .form_notice.warning #notice_text-count,
.form_settings .form_note, .form_settings .form_note,
.entity_remote_subscribe,
.entity_actions a, .entity_actions a,
.entity_actions input, .entity_actions input,
.entity_moderation p, .entity_moderation p,
@ -81,12 +78,10 @@ background-color:transparent;
input:focus, textarea:focus, select:focus, input:focus, textarea:focus, select:focus,
.form_notice.warning #notice_data-text, .form_notice.warning #notice_data-text,
.form_notice.warning #notice_text-count, .form_notice.warning #notice_text-count,
.form_settings .form_note, .form_settings .form_note {
.entity_remote_subscribe {
border-color:#9BB43E; border-color:#9BB43E;
} }
input.submit, input.submit {
.entity_remote_subscribe {
color:#FFFFFF; color:#FFFFFF;
} }
.entity_actions input.submit { .entity_actions input.submit {

View File

@ -30,8 +30,7 @@ border-radius:4px;
input, textarea, select, option { input, textarea, select, option {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif; font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
} }
input, textarea, select, input, textarea, select {
.entity_remote_subscribe {
border-color:#AAAAAA; border-color:#AAAAAA;
} }
@ -56,14 +55,12 @@ background:none;
} }
.form_notice.warning #notice_text-count, .form_notice.warning #notice_text-count,
.form_settings .form_note, .form_settings .form_note {
.entity_remote_subscribe {
background-color:#9BB43E; background-color:#9BB43E;
} }
input.submit, input.submit,
.form_notice.warning #notice_text-count, .form_notice.warning #notice_text-count,
.form_settings .form_note, .form_settings .form_note,
.entity_remote_subscribe,
.entity_actions a, .entity_actions a,
.entity_actions input, .entity_actions input,
.entity_moderation p, .entity_moderation p,
@ -81,12 +78,10 @@ background-color:transparent;
input:focus, textarea:focus, select:focus, input:focus, textarea:focus, select:focus,
.form_notice.warning #notice_data-text, .form_notice.warning #notice_data-text,
.form_notice.warning #notice_text-count, .form_notice.warning #notice_text-count,
.form_settings .form_note, .form_settings .form_note {
.entity_remote_subscribe {
border-color:#9BB43E; border-color:#9BB43E;
} }
input.submit, input.submit {
.entity_remote_subscribe {
color:#FFFFFF; color:#FFFFFF;
} }
.entity_actions input.submit { .entity_actions input.submit {