* @package Laconica
* @author Evan Prodromou <evan@controlyourself.ca>
* @author Robin Millette <millette@controlyourself.ca>
+ * @author Sarven Capadisli <csarven@controlyourself.ca>
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://laconi.ca/
*/
$this->element('title', null, _('Nudge sent'));
$this->elementEnd('head');
$this->elementStart('body');
- common_nudge_response();
+ $this->element('p', array('id' => 'nudge_response'), _('Nudge sent!'));
$this->elementEnd('body');
$this->elementEnd('html');
} else {
$("form.form_group_join").each(addAjaxHidden);
$("form.form_group_leave").each(addAjaxHidden);
- $("#nudge").ajaxForm ({ dataType: 'xml',
- beforeSubmit: function(xml) { $("form#nudge input[type=submit]").attr("disabled", "disabled");
- $("form#nudge input[type=submit]").addClass("disabled");
- },
- success: function(xml) { $("#nudge").replaceWith(document._importNode($("#nudge_response", xml).get(0),true));
- $("#nudge input[type=submit]").removeAttr("disabled");
- $("#nudge input[type=submit]").removeClass("disabled");
- }
- });
- $("#nudge").each(addAjaxHidden);
+ $("#form_user_nudge").ajaxForm ({ dataType: 'xml',
+ beforeSubmit: function(xml) { $("#form_user_nudge input[type=submit]").attr("disabled", "disabled");
+ $("#form_user_nudge input[type=submit]").addClass("disabled");
+ },
+ success: function(xml) { $("#form_user_nudge").replaceWith(document._importNode($("#nudge_response", xml).get(0),true));
+ $("#form_user_nudge input[type=submit]").removeAttr("disabled");
+ $("#form_user_nudge input[type=submit]").removeClass("disabled");
+ }
+ });
+ $("#form_user_nudge").each(addAjaxHidden);
var Subscribe = { dataType: 'xml',
beforeSubmit: function(formData, jqForm, options) { $(".form_user_subscribe input[type=submit]").attr("disabled", "disabled");
return $_SESSION['token'];
}
-function common_nudge_response()
-{
- common_element('p', array('id' => 'nudge_response'), _('Nudge sent!'));
-}
-
function common_cache_key($extra)
{
return 'laconica:' . common_keyize(common_config('site', 'name')) . ':' . $extra;
width:71.714em;
}
h1,h2,h3,h4,h5,h6 {
- text-transform:uppercase;
- margin-bottom:7px;
+text-transform:uppercase;
+margin-bottom:7px;
}
h1 {
font-size:1.4em;
caption {
font-weight:bold;
}
-.opened { display: block !important;}
-.closed { display: none !important;}
legend {
font-weight:bold;
-moz-border-radius:4px;
-webkit-border-radius:4px;
}
+
input.submit {
font-weight:bold;
}
font-weight:bold;
/*margin:0 0 11px 0;*/
}
-form ul li input {
-}
-
input.checkbox {
position:relative;
top:2px;
}
#form_notice #notice_data-attach_view {
-/*position:absolute;*/
+position:absolute;
top:25px;
right:30px;
margin-left:4px;
cursor:pointer;
width:100%;
}
-.entity_actions a {
+.entity_actions a,
+#entity_nudge p {
text-decoration:none;
font-weight:bold;
-width:100%;
display:block;
}
.form_user_block input.submit,
.form_user_unblock input.submit,
#entity_send-a-message a,
-.form_user_nudge input.submit {
+.form_user_nudge input.submit,
+#entity_nudge p {
border:0;
padding-left:20px;
}
-#entity_send-a-message a {
+#entity_send-a-message a,
+#entity_nudge p {
padding:4px 4px 4px 23px;
}
border-color:#aaa;
}
+
input.submit,
#form_notice.warning #notice_text-count,
#nav_register a,
.form_user_block input.submit,
.form_user_unblock input.submit,
#entity_send-a-message a,
-.form_user_nudge input.submit {
+.form_user_nudge input.submit,
+#entity_nudge p {
color:#002E6E;
}
#entity_send-a-message a,
.form_user_nudge input.submit,
.form_user_block input.submit,
-.form_user_unblock input.submit {
+.form_user_unblock input.submit,
+#entity_nudge p {
background-position: 0 40%;
background-repeat: no-repeat;
background-color:transparent;
#entity_send-a-message a {
background-image:url(../images/icons/twotone/green/quote.gif);
}
+#entity_nudge p,
.form_user_nudge input.submit {
background-image:url(../images/icons/twotone/green/mail.gif);
}