Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 68... Línea 68...
68
        if (delay) {
68
        if (delay) {
69
            this._hideTimeout = setTimeout(function() {
69
            this._hideTimeout = setTimeout(function() {
70
                self.hide();
70
                self.hide();
71
            }, delay);
71
            }, delay);
72
        }
72
        }
73
        this.after('visibleChange', this.visibilityChanged, this);
73
        this.after('visibleChange', this.errorVisibilityChanged, this);
74
        this._keypress = Y.on('key', this.hide, window, 'down:13,27', this);
74
        this._keypress = Y.on('key', this.hide, window, 'down:13,27', this);
75
        this.centerDialogue();
75
        this.centerDialogue();
76
    },
76
    },
77
    visibilityChanged: function(e) {
77
    errorVisibilityChanged: function(e) {
78
        if (e.attrName === 'visible' && e.prevVal && !e.newVal) {
78
        if (e.attrName === 'visible' && e.prevVal && !e.newVal) {
79
            if (this._keypress) {
79
            if (this._keypress) {
80
                this._keypress.detach();
80
                this._keypress.detach();
81
            }
81
            }
82
            var self = this;
82
            var self = this;