]> arthur.barton.de Git - ngircd-web.git/blob - common/slide.js
Correctly encode "<" & ">" in help.inc
[ngircd-web.git] / common / slide.js
1 window.addEvent('domready', function() {
2         var status = {
3                 'true': 'open',
4                 'false': 'close'
5         };
6         
7         //-vertical
8
9         var myVerticalSlide = new Fx.Slide('vertical_slide').hide();
10
11         $('v_toggle').addEvent('click', function(e){
12                 e.stop();
13                 myVerticalSlide.toggle();
14         });
15         
16         // When Vertical Slide ends its transition, we check for its status
17         // note that complete will not affect 'hide' and 'show' methods
18         myVerticalSlide.addEvent('complete', function() {
19                 $('vertical_status').set('html', status[myVerticalSlide.open]);
20         });
21 });