1
function toggle_expand_all(action)
3
var revlogs = Y.all('.revision_log');
4
if (revlogs == null) return;
8
var collapsable = item.collapsable;
11
Y.get('#expand_all').setStyle('display','block');
12
Y.get('#collapse_all').setStyle('display','none');
15
else if(action == 'open')
17
Y.get('#expand_all').setStyle('display','none');
18
Y.get('#collapse_all').setStyle('display','block');
27
event.preventDefault();
28
toggle_expand_all('open');
36
event.preventDefault();
37
toggle_expand_all('close');
43
"domready", function () {
44
Y.all(".show_if_js").removeClass("show_if_js");
51
var revlogs = Y.all('.revision_log');
52
if (revlogs == null) return;
56
var item_slide = item.query('.revisioninfo');
57
var open_content = new Array();
58
var close_content = new Array();
59
open_content.push(item.query('.long_description'));
60
close_content.push(item.query('.short_description'));
61
var expand_icon = item.query('.expand_icon');
62
var collapsable = new Collapsable(item_slide, expand_icon, open_content, close_content, false);
64
item.query('.expand_revisioninfo').on('click',function(){collapsable.toggle();});
65
item.collapsable = collapsable;