VirtualBox

Ignore:
Timestamp:
Mar 9, 2018 1:21:34 PM (7 years ago)
Author:
vboxsync
Message:

testmanager/common.js: Added svnHistoryTooltipShowEx that the tinderbox can use.

File:
1 edited

Legend:

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

    r69449 r71288  
    918918 * @param   sRepository The repository name.
    919919 * @param   iRevision   The revision number.
     920 * @param   sUrlPrefix  URL prefix for non-testmanager use.
    920921 *
    921922 * @remarks onmouseout must be set to call tooltipHide.
    922923 */
    923 function svnHistoryTooltipShow(oEvt, sRepository, iRevision)
     924function svnHistoryTooltipShowEx(oEvt, sRepository, iRevision, sUrlPrefix)
    924925{
    925926    var sKey        = svnHistoryTooltipCalcId(sRepository, iRevision);
     
    972973        }
    973974
    974         oSubElement.setAttribute('src', 'index.py?Action=VcsHistoryTooltip&repo=' + sRepository
     975        oSubElement.setAttribute('src', sUrlPrefix + 'index.py?Action=VcsHistoryTooltip&repo=' + sRepository
    975976                                 + '&rev=' + svnHistoryTooltipCalcLastRevision(iRevision)
    976977                                 + '&cEntries=' + g_cTooltipSvnRevisions
     
    987988    tooltipResetShowTimer();
    988989    g_idTooltipShowTimer = setTimeout(svnHistoryTooltipDelayedShow, 512);
     990}
     991
     992/**
     993 * The onmouseenter event handler for creating the tooltip.
     994 *
     995 * @param   oEvt        The event.
     996 * @param   sRepository The repository name.
     997 * @param   iRevision   The revision number.
     998 *
     999 * @remarks onmouseout must be set to call tooltipHide.
     1000 */
     1001function svnHistoryTooltipShow(oEvt, sRepository, iRevision)
     1002{
     1003    return svnHistoryTooltipShowEx(oEvt, sRepository, iRevision, '')
    9891004}
    9901005
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