(linkObj)
| 1 | function toggleVisibility(linkObj) |
| 2 | { |
| 3 | var base = $(linkObj).attr('id'); |
| 4 | var summary = $('#'+base+'-summary'); |
| 5 | var content = $('#'+base+'-content'); |
| 6 | var trigger = $('#'+base+'-trigger'); |
| 7 | var src=$(trigger).attr('src'); |
| 8 | if (content.is(':visible')===true) { |
| 9 | content.hide(); |
| 10 | summary.show(); |
| 11 | $(linkObj).addClass('closed').removeClass('opened'); |
| 12 | $(trigger).attr('src',src.substring(0,src.length-8)+'closed.png'); |
| 13 | } else { |
| 14 | content.show(); |
| 15 | summary.hide(); |
| 16 | $(linkObj).removeClass('closed').addClass('opened'); |
| 17 | $(trigger).attr('src',src.substring(0,src.length-10)+'open.png'); |
| 18 | } |
| 19 | return false; |
| 20 | } |
| 21 | |
| 22 | function updateStripes() |
| 23 | { |
nothing calls this directly
no outgoing calls
no test coverage detected