Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 396... Línea 396...
396
            return;
396
            return;
397
        }
397
        }
398
        e.halt();
398
        e.halt();
399
    },
399
    },
Línea -... Línea 400...
-
 
400
 
-
 
401
    /**
-
 
402
     * Initialize the event listener for the secure window close button
-
 
403
     *
-
 
404
     * @param {Object} Y YUI instance. When called from renderer, this parameter precedes the others
-
 
405
     * @param {String} url
400
 
406
     */
401
    init_close_button: function(Y, url) {
407
    init_close_button: function(Y, url) {
402
        Y.on('click', function(e) {
408
        Y.on('click', function(e) {
403
            M.mod_quiz.secure_window.close(url, 0)
409
            M.mod_quiz.secure_window.close(Y, url, 0);
404
        }, '#secureclosebutton');
410
        }, '#secureclosebutton');
Línea -... Línea 411...
-
 
411
    },
-
 
412
 
-
 
413
    /**
-
 
414
     * Close the secure window, or redirect to URL if the opener is no longer present
-
 
415
     *
-
 
416
     * @param {Object} Y YUI instance. When called from renderer, this parameter precedes the others
-
 
417
     * @param {String} url
405
    },
418
     * @param {Number} delay
406
 
419
     */
407
    close: function(url, delay) {
420
    close: function(Y, url, delay) {
408
        setTimeout(function() {
421
        setTimeout(function() {
409
            if (window.opener) {
422
            if (window.opener) {
410
                window.opener.document.location.reload();
423
                window.opener.document.location.reload();