includes/clientside/static/toolbar.js
changeset 86 c162ca39db8f
parent 1 fe660c52c48f
child 128 01955bf53f96
equal deleted inserted replaced
85:7c68a18a27be 86:c162ca39db8f
    38 
    38 
    39 function selectButtonMajor(which)
    39 function selectButtonMajor(which)
    40 {
    40 {
    41   if ( !document.getElementById('pagebar_main') )
    41   if ( !document.getElementById('pagebar_main') )
    42     return false;
    42     return false;
    43   if(typeof(document.getElementById('mdgToolbar_'+which)) == 'object')
    43   var dom = document.getElementById('mdgToolbar_'+which);
       
    44   if ( !dom )
       
    45     return false;
       
    46   if(typeof(dom) == 'object')
    44   {
    47   {
    45     unselectAllButtonsMajor();
    48     unselectAllButtonsMajor();
    46     document.getElementById('mdgToolbar_'+which).className = 'selected';
    49     document.getElementById('mdgToolbar_'+which).className = 'selected';
    47   }
    50   }
    48 }
    51 }