Project

General

Profile

Feature #3033 » chamilo_1895_52b859c75a48.patch

Laurent Opprecht, 04/03/2011 17:48

View differences:

common/libraries/resources/css/aqua/common_form.css
820 820

  
821 821
input.height {
822 822
	background-image: url(../../images/aqua/buttons/button_height.png);
823
}
824

  
825

  
826
/*
827
 * Collapsible
828
*/
829

  
830
div .expanded a{
831
    background-image: url(../../images/aqua/action_toggle_show.png);
832
    background-position: right center;
833
    background-repeat: no-repeat;
834
    padding-right: 16px;
835
}
836

  
837
div .collapsed{
838
    padding-bottom: 0px;
839
    height:10px;
840
}
841

  
842
div .collapsed .row{
843
    display: none;
844
}
845

  
846
div .collapsed a{
847
    background-image: url(../../images/aqua/action_toggle_hide.png);
848
    background-position: right center;
849
    background-repeat: no-repeat;
850
    padding-right: 10px;
851
}
852

  
853

  
854
div .collapsed div{
855
    display:none;
823 856
}
common/libraries/resources/css/ruby/common_form.css
820 820

  
821 821
input.height {
822 822
	background-image: url(../../images/ruby/buttons/button_height.png);
823
}
824

  
825
/*
826
 * Collapsible
827
*/
828

  
829
div .expanded a{
830
    background-image: url(../../images/ruby/action_toggle_show.png);
831
    background-position: right center;
832
    background-repeat: no-repeat;
833
    padding-right: 16px;
834
}
835

  
836
div .collapsed{
837
    padding-bottom: 0px;
838
    height:10px;
839
}
840

  
841
div .collapsed .row{
842
    display: none;
843
}
844

  
845
div .collapsed a{
846
    background-image: url(../../images/ruby/action_toggle_hide.png);
847
    background-position: right center;
848
    background-repeat: no-repeat;
849
    padding-right: 10px;
850
}
851

  
852

  
853
div .collapsed div{
854
    display:none;
823 855
}
common/libraries/resources/javascript/collapse_horizontal.js
1

  
2
$(document).ready(function()
3
{
4
    //$('.collapsed .row').hide();
5
    $('div.collapsible').bind('click', me_toggle);
6

  
7
    function me_toggle()
8
    {
9
        $('.collapsible .row').toggle();
10

  
11
        if($(this).is('.collapsed')){
12
            $(this).removeClass('collapsed');
13
            $(this).addClass('expanded');
14
        }else{
15
            $(this).addClass('collapsed');
16
            $(this).removeClass('expanded');
17
        }
18

  
19
        return false;
20
    }
21

  
22
});
(1-1/3)