[damned-lies] Dots have to be escaped in JQuery selectors
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Dots have to be escaped in JQuery selectors
- Date: Sat, 17 Apr 2010 19:33:51 +0000 (UTC)
commit 30a1a0e054e2b05a683116d65a347131974f1616
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Apr 17 21:30:49 2010 +0200
Dots have to be escaped in JQuery selectors
templates/module_detail.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/templates/module_detail.html b/templates/module_detail.html
index c550446..2b8bf27 100644
--- a/templates/module_detail.html
+++ b/templates/module_detail.html
@@ -11,7 +11,7 @@
$(document).ready(function() {
$(".branch").click(function(event) {
event.preventDefault();
- branch_div = $("#div-"+this.id);
+ branch_div = $("#div-"+this.id.replace(".","\\."));
is_visible = branch_div.is(':visible');
if (is_visible) {
branch_div.hide();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]