|
Lines 95-110
$( document ).ready( function () {
Link Here
|
| 95 |
$("h3").attr("class","expanded").attr("title",MSG_CLICK_TO_EXPAND); |
95 |
$("h3").attr("class","expanded").attr("title",MSG_CLICK_TO_EXPAND); |
| 96 |
var collapsible = $(".collapsed,.expanded"); |
96 |
var collapsible = $(".collapsed,.expanded"); |
| 97 |
|
97 |
|
| 98 |
$(collapsible).toggle( |
98 |
$(collapsible).on("click",function(){ |
| 99 |
function () { |
99 |
var panel = $(this).next("div"); |
|
|
100 |
if(panel.is(":visible")){ |
| 100 |
$(this).addClass("collapsed").removeClass("expanded").attr("title",MSG_CLICK_TO_EXPAND); |
101 |
$(this).addClass("collapsed").removeClass("expanded").attr("title",MSG_CLICK_TO_EXPAND); |
| 101 |
$(this).next("div").hide(); |
102 |
panel.hide(); |
| 102 |
}, |
103 |
} else { |
| 103 |
function () { |
|
|
| 104 |
$(this).addClass("expanded").removeClass("collapsed").attr("title",MSG_CLICK_TO_COLLAPSE); |
104 |
$(this).addClass("expanded").removeClass("collapsed").attr("title",MSG_CLICK_TO_COLLAPSE); |
| 105 |
$(this).next("div").show(); |
105 |
panel.show(); |
| 106 |
} |
106 |
} |
| 107 |
); |
107 |
}); |
| 108 |
|
108 |
|
| 109 |
if ( to_highlight ) { |
109 |
if ( to_highlight ) { |
| 110 |
var words = to_highlight.split( ' ' ); |
110 |
var words = to_highlight.split( ' ' ); |