equal
deleted
inserted
replaced
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 } |