-
-
Save chimo/8395275 to your computer and use it in GitHub Desktop.
Adding the following to SN's config.php should prepend the @-nickname of the person you're replying to in the web-UI's textarea.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function replyAtMention($action) { | |
| $action->inlineScript('(function ($) { | |
| SN.U.NoticeReply = function () {}; | |
| $("#content .notice_reply").die("click") | |
| .live("click", function (e) { | |
| e.preventDefault(); | |
| var $notice = $(this).closest("li.notice"), | |
| replyNick = "@" + $notice.find(".vcard.author a.url").attr("title"); | |
| SN.U.NoticeInlineReplyTrigger($notice, replyNick); | |
| }); | |
| }(jQuery));'); | |
| } | |
| Event::addHandler('EndShowScripts', 'replyAtMention'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment