// run once in case there's something in there
counter();
}
+
});
+ function doreply(nick) {
+ rgx_username = /^[0-9a-zA-Z\-_.]*$/;
+ if (nick.match(rgx_username)) {
+ replyto = "@" + nick + " ";
+ document.getElementById("status_textarea").value=replyto;
+ document.getElementById("status_textarea").focus();
+ }
+ }
if (!defined('LACONICA')) { exit(1); }
-require_once('XMPPHP/XMPP.php');
+require_once('xmpp.php');
function jabber_valid_base_jid($jid) {
# Cheap but effective
'href' => $noticeurl,
'title' => common_exact_date($notice->created)),
common_date_string($notice->created));
+ common_element('a', array('href' => "#", 'onclick' => 'javascript: doreply("'.$profile->nickname.'")', 'class' => 'replybutton'), 'reply');
if ($replied_id) {
$replyurl = common_local_url('shownotice', array('notice' => $replied_id));
common_text('(');
}
/* ===== End Forms Styling ===== */
-
+
+.replybutton {
+ margin-left: 55%;
+}
}
/* ===== End Forms Styling ===== */
+
+.replybutton {
+ margin-left: 55%;
+}