You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/01/23 00:23:18 UTC

[16/50] git commit: [#5336] Escape selector to prevent JS error

[#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 <tv...@gmail.com>
Authored: Mon Jan 21 21:52:37 2013 +0000
Committer: Cory Johns <jo...@geek.net>
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