| 108 | |
| 109 | |
| 110 | function toggleInherit(id) |
| 111 | { |
| 112 | var rows = $('tr.inherit.'+id); |
| 113 | var img = $('tr.inherit_header.'+id+' img'); |
| 114 | var src = $(img).attr('src'); |
| 115 | if (rows.filter(':first').is(':visible')===true) { |
| 116 | rows.css('display','none'); |
| 117 | $(img).attr('src',src.substring(0,src.length-8)+'closed.png'); |
| 118 | } else { |
| 119 | rows.css('display','table-row'); // using show() causes jump in firefox |
| 120 | $(img).attr('src',src.substring(0,src.length-10)+'open.png'); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | var opened=true; |
| 125 | // in case HTML_COLORSTYLE is LIGHT or DARK the vars will be replaced, so we write them out explicitly and use double quotes |