(linkObj)
| 22 | for the JavaScript code in this file |
| 23 | */ |
| 24 | function toggleVisibility(linkObj) |
| 25 | { |
| 26 | var base = $(linkObj).attr('id'); |
| 27 | var summary = $('#'+base+'-summary'); |
| 28 | var content = $('#'+base+'-content'); |
| 29 | var trigger = $('#'+base+'-trigger'); |
| 30 | var src=$(trigger).attr('src'); |
| 31 | if (content.is(':visible')===true) { |
| 32 | content.hide(); |
| 33 | summary.show(); |
| 34 | $(linkObj).addClass('closed').removeClass('opened'); |
| 35 | $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); |
| 36 | } else { |
| 37 | content.show(); |
| 38 | summary.hide(); |
| 39 | $(linkObj).removeClass('closed').addClass('opened'); |
| 40 | $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); |
| 41 | } |
| 42 | return false; |
| 43 | } |
| 44 | |
| 45 | function updateStripes() |
| 46 | { |
nothing calls this directly
no outgoing calls
no test coverage detected