1aa221a079cbfd0978ad328d14847d392180fd5f angie Wed Jul 30 15:33:54 2014 -0700 Oops, left in some console.log calls in jsHelper.js -- removing them. diff --git src/hg/js/jsHelper.js src/hg/js/jsHelper.js index 3299258..7cba14e 100644 --- src/hg/js/jsHelper.js +++ src/hg/js/jsHelper.js @@ -87,35 +87,31 @@ { button.click(); return false; } else { return true; } } function setClearAllInit($el) // $el should contain buttons labeled 'Set all' and 'Clear all' (or whatever jsHelper.h // defines for JS_{SET,CLEAR}_ALL_BUTTON_LABEL). Set up event handlers on those to act // on all checkboxes in $el. { -console.log($el); var $checkboxes = $el.find('input[type="checkbox"]'); -console.log($checkboxes); var $setAll = $el.find('input[type="button"][value="Set all"]'); -console.log($setAll); var $clearAll = $el.find('input[type="button"][value="Clear all"]'); -console.log($clearAll); $setAll.bind('click', function() { $checkboxes.each( function(ix, el) { el.checked = true; }); }); $clearAll.bind('click', function() { $checkboxes.each( function(ix, el) { el.checked = false; }); }); } $(document).ready(function() // Identify widgets by class and initialize them. { $('.setClearContainer').each(function(i, el) { setClearAllInit($(el)); }); });