VirtualBox

Ignore:
Timestamp:
Jan 5, 2017 1:41:32 PM (8 years ago)
Author:
vboxsync
Message:

TestManager: Added clickable element-of / not-an-element-of on filters to avoid a lot of clicking just to remove a couple of items from the output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/webui/wuimain.py

    r65145 r65154  
    948948                    sChar  = '▶';
    949949
    950                 sHtml += u'  <dt class="%s"><a href="javascript:void(0)" onclick="toggleCollapsibleDtDd(this);">%s'\
    951                          u' %s</a></dt>\n' \
     950                sHtml += u'  <dt class="%s"><a href="javascript:void(0)" onclick="toggleCollapsibleDtDd(this);">%s %s</a> ' \
     951                       % (sClass, sChar, webutils.escapeElem(oCrit.sName),);
     952                if oCrit.sInvVarNm is not None:
     953                    sHtml += u'<input  id="sf-union-%s" class="tm-side-filter-union-input" ' \
     954                             u'name="%s" value="1" type="checkbox"%s />' \
     955                             u'<label for="sf-union-%s" class="tm-side-filter-union-input"/>' \
     956                           % ( oCrit.sInvVarNm, oCrit.sInvVarNm, ' checked' if oCrit.fInverted else '', oCrit.sInvVarNm,);
     957                sHtml += u'</dt>\n' \
    952958                         u'  <dd class="%s">\n' \
    953959                         u'   <ul>\n' \
    954                          % (sClass, sChar, webutils.escapeElem(oCrit.sName), sClass);
     960                         % (sClass, );
    955961
    956962                for oDesc in oCrit.aoPossible:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette