incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [16/50] git commit: [#5336] Escape selector to prevent JS error
Date Tue, 22 Jan 2013 23:23:18 GMT
[#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 <tvansteenburgh@gmail.com>
Authored: Mon Jan 21 21:52:37 2013 +0000
Committer: Cory Johns <johnsca@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


Mime
View raw message