Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make all parts of section titles clickable

  • Loading branch information...
commit f1b879dbe2d56444b64179e3ccaba8a18d904718 1 parent 4b05966
@brandonmwest authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 public/js/default.js
View
4 public/js/default.js
@@ -31,6 +31,7 @@ $(function() {
$('input.parameterName').live('change', updateParameterName);
$('.section.clickable').live('click', toggleSection);
+ $('.section.clickable > span').live('click', toggleSection);
//navbar about link
$('a.about').click(showAbout);
@@ -99,6 +100,9 @@ var updateParameterDataType = function(e) {
var toggleSection = function(e) {
var clicked = $(e.target);
var target = clicked.attr('target');
+ if(typeof(target)=="undefined")
+ target = clicked.closest('.section').attr('target');
+
$(target).slideToggle();
}
Please sign in to comment.
Something went wrong with that request. Please try again.