Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 132... Línea 132...
132
        easing: Y.Easing.easeBoth,
132
        easing: Y.Easing.easeBoth,
133
        to: {height:caption.get('offsetHeight')},
133
        to: {height:caption.get('offsetHeight')},
134
        from: {height:height}
134
        from: {height:height}
135
    });
135
    });
Línea -... Línea 136...
-
 
136
 
-
 
137
    animation.on('start', () => M.util.js_pending('CollapsibleRegion'));
-
 
138
    animation.on('resume', () => M.util.js_pending('CollapsibleRegion'));
-
 
139
    animation.on('pause', () => M.util.js_complete('CollapsibleRegion'));
136
 
140
 
137
    // Handler for the animation finishing.
141
    // Handler for the animation finishing.
138
    animation.on('end', function() {
142
    animation.on('end', function() {
139
        this.div.toggleClass('collapsed');
143
        this.div.toggleClass('collapsed');
140
        var collapsedimage = 't/collapsed'; // ltr mode
144
        var collapsedimage = 't/collapsed'; // ltr mode
Línea 146... Línea 150...
146
        if (this.div.hasClass('collapsed')) {
150
        if (this.div.hasClass('collapsed')) {
147
            this.icon.set('src', M.util.image_url(collapsedimage, 'moodle'));
151
            this.icon.set('src', M.util.image_url(collapsedimage, 'moodle'));
148
        } else {
152
        } else {
149
            this.icon.set('src', M.util.image_url('t/expanded', 'moodle'));
153
            this.icon.set('src', M.util.image_url('t/expanded', 'moodle'));
150
        }
154
        }
-
 
155
 
-
 
156
        M.util.js_complete('CollapsibleRegion');
151
    }, this);
157
    }, this);
Línea 152... Línea 158...
152
 
158
 
153
    // Hook up the event handler.
159
    // Hook up the event handler.
154
    a.on('click', function(e, animation) {
160
    a.on('click', function(e, animation) {