Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/04/14 08:59:24 (10 years ago)
Author:
mroscoe
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Scripts/CollapsingSection.js

    r11059 r11084  
    4545  var jqCaller = $(caller);
    4646  if (jqCaller.html() == "-") {
    47     jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer").hide();
     47    jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, .tabSection").hide();
    4848    jqCaller.html("+");
    4949  }
    5050  else {
    51     jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer").show();
     51    jqCaller.parent().children("canvas, div, fieldset, label, .chartContainer, .tabSection").show();
    5252    jqCaller.html("-");
    5353  }
    5454}
     55
     56/* Because some chart sections are collapsed(display=none) on resize the charts will not chart
     57  properly unless they are opened, them updated, then closed again. */
     58function ResizeOpenCloseTabular(caller) {
     59  var jqCaller = $(caller);
     60  if (jqCaller.css("display") != "none") {
     61    jqCaller.hide();
     62  }
     63  else {
     64    jqCaller.show();
     65  }
     66}
Note: See TracChangeset for help on using the changeset viewer.