VirtualBox

Ignore:
Timestamp:
Mar 21, 2020 1:43:17 PM (5 years ago)
Author:
vboxsync
Message:

TestManager/wui: More flexible time navigation input. Items-per-page for admin pages too. Currently making results and admin pages share time + page-count stuff via wuicontentbase.py, should probably find a better place long term though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/htdocs/js/common.js

    r82968 r83360  
    480480
    481481    return true;
     482}
     483
     484
     485/**
     486 * Used by the time navigation to update the hidden efficient date field when
     487 * either of the date or time fields changes.
     488 *
     489 * @param oForm     The form.
     490 */
     491function timeNavigationUpdateHiddenEffDate(oForm, sIdSuffix)
     492{
     493    var sDate = document.getElementById('EffDate' + sIdSuffix).value;
     494    var sTime = document.getElementById('EffTime' + sIdSuffix).value;
     495
     496    var oField = document.getElementById('EffDateTime' + sIdSuffix);
     497    oField.value =  sDate + 'T' + sTime + '.00Z';
    482498}
    483499
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