1
window.addEvent('domready', function()
3
$$('.revision_log').each(function(item, i)
5
// FIXME: Make less redundant
6
var thisSlider = new Fx.Slide( item.getElement( '.revisioninfo' ), { duration: 200 } );
7
var shortDescription = item.getElement( '.short_description' );
8
var longDescription = item.getElement( '.long_description' );
10
item.getElement( '.expand_revisioninfo' ).addEvent( 'click', function()
13
if(longDescription.style.display == 'none')
15
longDescription.style.display = 'block';
16
shortDescription.style.display = 'none';
20
longDescription.style.display = 'none';
21
shortDescription.style.display = 'block';
28
function toggle_expand_all(action)
30
$$('.revision_log').each(function(item, i)
32
// FIXME: Make less redundant
33
var thisSlider = new Fx.Slide( item.getElement( '.revisioninfo' ), { duration: 200 } );
34
var shortDescription = item.getElement( '.short_description' );
35
var longDescription = item.getElement( '.long_description' );
38
thisSlider.slideOut();
39
$('expand_all').style.display = 'block';
40
$('collapse_all').style.display = 'none';
43
else if(action == 'open')
46
$('expand_all').style.display = 'none';
47
$('collapse_all').style.display = 'block';
49
if(longDescription.style.display == 'none')
51
longDescription.style.display = 'block';
52
shortDescription.style.display = 'none';
56
longDescription.style.display = 'none';
57
shortDescription.style.display = 'block';