Commit 07d70a1b authored by PidgeyL's avatar PidgeyL
Browse files

Implement request #197

parent bf226948
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -57,9 +57,16 @@ jQuery(document).ready(function() {
})(jQuery);

jQuery(document).ready(function() {
  jQuery('.colfield').on('click', function (event) {
    if (event.target !== this) return;
    event.preventDefault();
    $(this).toggleClass("semiCollapsed");
  })
  var indicator = 0;

  jQuery('.colfield').each(function(){
    $(this).html($(this).html() + '<span id="colf_'+indicator+'" class="glyphicon glyphicon-chevron-down" style="float:right"></span>');
    $(this).attr("id", "col_"+indicator);
    indicator +=1
  });
  jQuery("[id^='colf_']").on('click', function(event){
    name = "#col_" + $(this).attr("id").split("_")[1]
    $(name).toggleClass("semiCollapsed");
    $(this).toggleClass("glyphicon-chevron-down glyphicon-chevron-up");
  });
});