function perforceGetVariants(path, lnk, nocache)
{
var bodyDiv = lnk.parentNode.parentNode.nextSibling;
lnk.parentNode.style.display= 'none';
bodyDiv.style.display= 'block';
function f( request )
{
if (request.status != 200)
{
bodyDiv.innerHTML = '<i class="p4VariantError">Something went wrong.</i>';
var retryLink = document.createElement('a');
retryLink.innerHTML = 'Try again?';
retryLink.onclick = function()
{
perforceGetVariants(path, lnk);
}
bodyDiv.appendChild(retryLink);
return;
}
result= request.responseText;
result= result.replace(/^\s+|\s+$/, '');
if ( result == '' )
{
result= '<i class="p4VariantMessage">No variants found.</i>';
}
bodyDiv.innerHTML= result;
}
sajax_do_call( "wfPerforceVariantsAjax", [path, nocache] , f );
}
# |
Change |
User |
Description |
Committed |
|
#1
|
8318 |
Matt Attaway |
Get the latest changes from @sam_stafford's version of the Mediawiki plugin |
|
|
//guest/sam_stafford/mediawiki/extensions/Perforce/Perforce.js |
#1
|
6260 |
Sam Stafford |
New <p4variants> tag that dynamically lists branches with outstanding changes. |
|
|