TextDiffViewer/TextDiffViewer/ClientScript.js
//changes the file selection mode for comparision (individual or multiple)

changes the file selection mode for comparision (individual or multiple)
changes the file selection mode for comparision ( individual or multiple )
function openTab() {
    var list = document.getElementById("radioFileMode"); 
    var inputs = list.getElementsByTagName("input");
    var selected;
    for (var i = 0; i < inputs.length; i++) {
        if (inputs[i].checked) {
            selected = inputs[i];
            break;
        }
    }
    if (selected) {
    if (selected.value == "individual") {
        document.getElementById("BrowseIndividualFiles").style.display = "table-row";
        document.getElementById("LoadMultipleFiles").style.display = "none";
        radioIndividualSelection = true;
    }
    else if (selected.value == "multiple") {
        document.getElementById("BrowseIndividualFiles").style.display = "none";
        document.getElementById("LoadMultipleFiles").style.display = "table-row";
        radioIndividualSelection = false;
    }
    document.getElementById("spnFirstName").innerText = "";
    }
}
function openTab ( ) { var list = document . getElementById ( "radioFileMode" ) ; var inputs = list . getElementsByTagName ( "input" ) ; var selected ; for ( var i = 0 ; i < inputs . length ; i ++ ) { if ( inputs [ i ] . checked ) { selected = inputs [ i ] ; break ; } } if ( selected ) { if ( selected . value == "individual" ) { document . getElementById ( "BrowseIndividualFiles" ) . style . display = "table-row" ; document . getElementById ( "LoadMultipleFiles" ) . style . display = "none" ; radioIndividualSelection = true ; } else if ( selected . value == "multiple" ) { document . getElementById ( "BrowseIndividualFiles" ) . style . display = "none" ; document . getElementById ( "LoadMultipleFiles" ) . style . display = "table-row" ; radioIndividualSelection = false ; } document . getElementById ( "spnFirstName" ) . innerText = "" ; } }
changes the file selection mode for comparision (individual or multiple)
changes the file selection mode for comparision ( individual or multiple )
//Client ID of the radiolist
