1
13693261870
2022-09-16 06df9667ad1465622bf0e423dc3840ef9f93c725
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Ext.onReady(function(){
    // expanders
    Ext.getBody().on('click', function(e, t){
        t = Ext.get(t);
        e.stopEvent();
 
        var bd = t.next('div.expandable-body');
        bd.enableDisplayMode();
        var bdi = bd.first();
        var expanded = bd.isVisible();
 
        if(expanded){
            bd.hide();
        }else{
            bdi.hide();
            bd.show();
            bdi.slideIn('l', {duration:0.2, stopAnimation: true, easing:'easeOut'});
        }
 
        t.update(!expanded ? 'Hide details' : 'Show details');
 
    }, null, {delegate:'a.expander'});
});