Changeset 65080 in vbox for trunk/src/VBox/ValidationKit/testmanager/webui
- Timestamp:
- Jan 3, 2017 1:26:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/webui/wuimain.py
r65077 r65080 894 894 # Now, generate a filter control panel for the side bar. 895 895 # 896 if hasattr(oFilter, 'kiBranches'): 897 oFilter.aCriteria[oFilter.kiBranches].fExpanded = True; 898 if hasattr(oFilter, 'kiTestStatus'): 899 oFilter.aCriteria[oFilter.kiTestStatus].fExpanded = True; 896 900 self._sPageFilter = self._generateResultFilter(oFilter, oResultLogic, tsEffective, sCurPeriod, 897 901 enmResultsGroupingType = enmResultsGroupingType, … … 929 933 for oCrit in oFilter.aCriteria: 930 934 if len(oCrit.aoPossible) > 0: 931 sClass = 'sf-collapsable' if oCrit.sState == oCrit.ksState_Selected else 'sf-expandable'; 932 sChar = '▼' if oCrit.sState == oCrit.ksState_Selected else '▶'; 935 if oCrit.sState == oCrit.ksState_Selected \ 936 or len(oCrit.aoPossible) <= 2 \ 937 or oCrit.fExpanded is True: 938 sClass = 'sf-collapsable'; 939 sChar = '▼'; 940 else: 941 sClass = 'sf-expandable'; 942 sChar = '▶'; 943 933 944 sHtml += u' <dt class="%s"><a href="javascript:void(0)" onclick="toggleCollapsableDtDd(this);">%s'\ 934 945 u' %s</a></dt>\n' \ … … 1230 1241 self._sPageBody = sNavi + self._sPageBody; 1231 1242 1243 if hasattr(oFilter, 'kiBranches'): 1244 oFilter.aCriteria[oFilter.kiBranches].fExpanded = True; 1232 1245 self._sPageFilter = self._generateResultFilter(oFilter, oModel, tsEffective, '%s hours' % (cHoursPerPeriod * cPeriods,)); 1233 1246 return True;
Note:
See TracChangeset
for help on using the changeset viewer.