forked from GNUsocial/gnu-social
fallback to newnotice on reply button, new button with mouseover
darcs-hash:20080709071439-84dde-f85f0e97f7c14bb77b7174f281e3e9f75c23cac1.gz
This commit is contained in:
23
js/util.js
23
js/util.js
@@ -13,20 +13,23 @@ $(document).ready(function(){
|
||||
counter.attr("class", "");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($("#status_textarea").length) {
|
||||
$("#status_textarea").bind("keyup", counter);
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
function doreply(nick) {
|
||||
rgx_username = /^[0-9a-zA-Z\-_.]*$/;
|
||||
if (nick.match(rgx_username)) {
|
||||
replyto = "@" + nick + " ";
|
||||
if ($("#status_textarea")) {
|
||||
$("#status_textarea").value=replyto;
|
||||
$("#status_textarea").focus();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user