<script language="javascript">
/* this initializes the status update input field. */
$(document).ready(function() {
- registerInputTextareaSwap("#sone #update-status .status-input", "WebInterface.DefaultText.StatusUpdate", "text", false);
+ registerInputTextareaSwap("#sone #update-status .status-input", "WebInterface.DefaultText.StatusUpdate", "text", false, false);
});
</script>
<script language="javascript">
/* this initializes all reply input fields. */
$(document).ready(function() {
- registerInputTextareaSwap("#sone input.reply-input", "WebInterface.DefaultText.Reply", "text", false);
+ registerInputTextareaSwap("#sone input.reply-input", "WebInterface.DefaultText.Reply", "text", false, false);
addCommentLinks();
});
</script>
});
return false;
});
+ $("#sone .blacklist").submit(function() {
+ var blacklistElement = this;
+ $.getJSON("ajax/blacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() {
+ $(getSoneElement(blacklistElement)).slideUp();
+ });
+ return false;
+ });
+ $("#sone .unblacklist").submit(function() {
+ var unblacklistElement = this;
+ $.getJSON("ajax/unblacklistSone.ajax", { "sone" : getSoneId(this), "formPassword" : getFormPassword() }, function() {
+ $(getSoneElement(unblacklistElement)).slideUp();
+ });
+ return false;
+ });
});
</script>
unlikePost(getPostId(this));
return false;
});
+ $("#sone .post .reply .status-line .like").submit(function() {
+ likeReply(getReplyId(this));
+ return false;
+ });
+ $("#sone .post .reply .status-line .unlike").submit(function() {
+ unlikeReply(getReplyId(this));
+ return false;
+ });
});
</script>