Changeset 36296


Ignore:
Timestamp:
2022-07-21T20:00:25+12:00 (3 weeks ago)
Author:
anupama
Message:

Cleaned up unused parts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documented-examples/trunk/lomdemo-e/script/lomscript.js

    r36295 r36296  
    44var aftertbody  = new Array();
    55
    6 /*
    7 function makeToggleItems() {
    8 
    9     console.log("In makeToggleItems");
    10 
    11     var metatablelink=document.getElementById("metatablelink");
    12     var xmlrecordlink=document.getElementById("xmlrecordlink"); 
    13    
    14     var metatablediv=document.getElementById("metatablediv");
    15     var xmlrecordarea=document.getElementById("xmlrecordarea");
    16    
    17     metatablelink.onclick = function() {
    18         metatablediv.style.display = "block";
    19         xmlrecordarea.style.display = "none";
    20     };
    21    
    22     xmlrecordlink.onclick = function() {
    23         xmlrecordarea.style.display = "block";
    24         metatablediv.style.display = "none";
    25     };     
    26 }*/
    27 
    286function doShowHide(showItemID, hideItemID) {
    297
    30     //console.log("In makeToggleItems");
    31    
    328    var showItem=document.getElementById(showItemID);
    339    var hideItem=document.getElementById(hideItemID);   
     
    3915
    4016function showTBodyArea(category) {
    41     //console.log("In showTBodyArea");
    42    
    4317    parenttbody[category].insertBefore(tbody[category],aftertbody[category]);
    44         //document[category+"openclose"].src="_httpopenmdicon_";
    4518
    46         var imgname  = category+"openclose";
    47         var linkname = category+"opencloselink";
     19    var imgname  = category+"openclose";
     20    var linkname = category+"opencloselink";
    4821
    4922    var imgel = document.getElementById(imgname);
     
    5326    var linkel = document.getElementById(linkname);
    5427    linkel.setAttribute("href","javascript:hideTBodyArea('"+category+"')");
    55 
    56         //document.links[category+"opencloselink"].href
    57     //  ="javascript:hideTBodyArea('"+category+"')";
    5828}
    5929
    6030function hideTBodyArea(category) {
    61     //console.log("In hideTBodyArea");
    62         tbody[category] = document.getElementById(category);
    63         parenttbody[category] = tbody[category].parentNode;
    64         aftertbody[category] = tbody[category].nextSibling;
    65         parenttbody[category].removeChild(tbody[category]);
    6631
    67         var imgname  = category+"openclose";
    68         var linkname = category+"opencloselink";
     32    tbody[category] = document.getElementById(category);
     33    parenttbody[category] = tbody[category].parentNode;
     34    aftertbody[category] = tbody[category].nextSibling;
     35    parenttbody[category].removeChild(tbody[category]);
    6936
    70     // alert("document link lookup 3 = " + document.links[linkname]);
     37    var imgname  = category+"openclose";
     38    var linkname = category+"opencloselink";
    7139
    7240    var imgel = document.getElementById(imgname);
     
    7442    imgel.setAttribute("src",imgel.getAttribute("data-img-path")+"close.gif");
    7543
    76         // document[category+"openclose"].src="_httpclosemdicon_";
    77 
    7844    var linkel = document.getElementById(linkname);
    7945    linkel.setAttribute("href","javascript:showTBodyArea('"+category+"')");
    80 
    81         //document.links[category+"opencloselink"].href
    82     //  ="javascript:showTBodyArea('"+category+"')";
    8346}
    8447
Note: See TracChangeset for help on using the changeset viewer.