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 revid = revids[item.get('id').replace('log-', '')];
57
var collapsable = new Collapsable(
59
expand_icon: item.query('.expand_icon'),
60
open_node: item.query('.long_description'),
61
close_node: item.query('.short_description'),
62
source: global_path + '+revlog/' + revid,
63
loading: item.query('.loading'),
67
item.query('.expand_revisioninfo a').on(
73
item.collapsable = collapsable;