1. Christoph Zwerschke
  2. tgext.debugbar

Commits

Christoph Zwerschke  committed 91d47a0

Highlight the selected section title.

  • Participants
  • Parent commits 187737b
  • Branches default

Comments (0)

Files changed (2)

File tgext/debugbar/statics/style.css

View file
 	height: 24px;
 }
 
+#tgdb_debugbar .tgdb_title.highlight {
+	color: #FC6;
+}
+
 #tgdb_debugbar .tgdb_content {
 	z-index: 998;
 	color: black;

File tgext/debugbar/templates/debugbar.html

View file
 	$('.tgdb_title', bar).click(function() {
 		var title = $(this);
 		var content = title.siblings();
+		$('.tgdb_title', bar).not(title).removeClass('highlight');
 		$('.tgdb_content', bar).not(content).hide();
+		title.toggleClass('highlight');
 		content.slideToggle();
 	});
 });