From d6227ef1b36f0615fd03bb8b444b71f2f5b0ed55 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 13 Mar 2012 15:25:04 +0000 Subject: [PATCH] #c123 is now the comment element directly, no need for parent() --- ext/bbcode/main.php | 2 +- lib/shimmie.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php index 0be2a5ef..843e03f0 100644 --- a/ext/bbcode/main.php +++ b/ext/bbcode/main.php @@ -34,7 +34,7 @@ class BBCode extends FormatterExtension { $text = preg_replace("/\[i\](.*?)\[\/i\]/s", "\\1", $text); $text = preg_replace("/\[u\](.*?)\[\/u\]/s", "\\1", $text); $text = preg_replace("/\[s\](.*?)\[\/s\]/s", "\\1", $text); - $text = preg_replace("/>>(\d+)(#c?(\d+))?/s", ">>\\1\\2", $text); + $text = preg_replace("/>>(\d+)(#c?(\d+))?/s", ">>\\1\\2", $text); $text = preg_replace("/(^|\s)#(\d+)/s", "\\1#\\2", $text); $text = preg_replace("/>>([^\d].+)/", "
\\1
", $text); $text = preg_replace("/\[url=((?:https?|ftp|irc|mailto):\/\/.*?)\](.*?)\[\/url\]/s", "\\2", $text); diff --git a/lib/shimmie.js b/lib/shimmie.js index 75d1a362..4a7c5071 100644 --- a/lib/shimmie.js +++ b/lib/shimmie.js @@ -170,5 +170,5 @@ function replyTo(imageId, commentId) { box.focus(); box.val(box.val() + text); - $("#c"+commentId).parent().effect("highlight", {}, 5000); + $("#c"+commentId).effect("highlight", {}, 5000); }