MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/FleX / toggleVisibility

Function toggleVisibility

doc/_static/api/dynsections.js:1–20  ·  view source on GitHub ↗
(linkObj)

Source from the content-addressed store, hash-verified

1function 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
22function updateStripes()
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected