Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DE19DEF77 for ; Tue, 22 Jan 2013 23:23:19 +0000 (UTC) Received: (qmail 43033 invoked by uid 500); 22 Jan 2013 23:23:19 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 42982 invoked by uid 500); 22 Jan 2013 23:23:19 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 42188 invoked by uid 99); 22 Jan 2013 23:23:18 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 23:23:18 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 75CBA822FC7; Tue, 22 Jan 2013 23:23:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [16/50] git commit: [#5336] Escape selector to prevent JS error Message-Id: <20130122232318.75CBA822FC7@tyr.zones.apache.org> Date: Tue, 22 Jan 2013 23:23:18 +0000 (UTC) [#5336] Escape selector to prevent JS error Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/19f24f77 Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/19f24f77 Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/19f24f77 Branch: refs/heads/cj/4691 Commit: 19f24f7753a4773c6d74f9b8f39e15360faf4214 Parents: ce29a32 Author: Tim Van Steenburgh Authored: Mon Jan 21 21:52:37 2013 +0000 Committer: Cory Johns Committed: Tue Jan 22 15:12:42 2013 +0000 ---------------------------------------------------------------------- Allura/allura/public/nf/js/allura-base.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/19f24f77/Allura/allura/public/nf/js/allura-base.js ---------------------------------------------------------------------- diff --git a/Allura/allura/public/nf/js/allura-base.js b/Allura/allura/public/nf/js/allura-base.js index ef60650..d1ae083 100644 --- a/Allura/allura/public/nf/js/allura-base.js +++ b/Allura/allura/public/nf/js/allura-base.js @@ -16,7 +16,8 @@ }); }); if(window.location.hash) { - $(window.location.hash + '.title-pane').removeClass('closed'); + // Nested comment (reply) hash link contains a /, which must be escaped + $(window.location.hash.replace('/', '\\/') + '.title-pane').removeClass('closed'); } // Setup editable widgets