diff --git a/lib/yui/notification/notification.js b/lib/yui/notification/notification.js index 9bd15438148..eca0664a884 100644 --- a/lib/yui/notification/notification.js +++ b/lib/yui/notification/notification.js @@ -29,7 +29,7 @@ var DIALOGUE = function(config) { var id = 'moodle-dialogue-'+COUNT; config.notificationBase = C('
') - .append(C('
') + .append(C('') .append(C('
')) .append(C('
')) .append(C('
'))); @@ -146,7 +146,7 @@ Y.extend(ALERT, DIALOGUE, { .append(yes)); this.get(BASE).addClass('moodle-dialogue-confirm'); this.setStdModContent(Y.WidgetStdMod.BODY, content, Y.WidgetStdMod.REPLACE); - this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + this.get(TITLE) + '

', Y.WidgetStdMod.REPLACE); + this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + this.get(TITLE) + '

', Y.WidgetStdMod.REPLACE); this.after('destroyedChange', function(){this.get(BASE).remove();}, this); this._enterKeypress = Y.on('key', this.submit, window, 'down:13', this); yes.on('click', this.submit, this); @@ -201,7 +201,7 @@ Y.extend(CONFIRM, DIALOGUE, { .append(no)); this.get(BASE).addClass('moodle-dialogue-confirm'); this.setStdModContent(Y.WidgetStdMod.BODY, content, Y.WidgetStdMod.REPLACE); - this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + this.get(TITLE) + '

', Y.WidgetStdMod.REPLACE); + this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + this.get(TITLE) + '

', Y.WidgetStdMod.REPLACE); this.after('destroyedChange', function(){this.get(BASE).remove();}, this); this._enterKeypress = Y.on('key', this.submit, window, 'down:13', this, true); this._escKeypress = Y.on('key', this.submit, window, 'down:27', this, false); @@ -254,7 +254,7 @@ Y.extend(EXCEPTION, DIALOGUE, { _keypress : null, initializer : function(config) { this.get(BASE).addClass('moodle-dialogue-exception'); - this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + config.name + '

', Y.WidgetStdMod.REPLACE); + this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + config.name + '

', Y.WidgetStdMod.REPLACE); var content = C('
') .append(C('
'+this.get('message')+'
')) .append(C('')) @@ -325,7 +325,7 @@ Y.extend(AJAXEXCEPTION, DIALOGUE, { _keypress : null, initializer : function(config) { this.get(BASE).addClass('moodle-dialogue-exception'); - this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + config.name + '

', Y.WidgetStdMod.REPLACE); + this.setStdModContent(Y.WidgetStdMod.HEADER, '

' + config.name + '

', Y.WidgetStdMod.REPLACE); var content = C('
') .append(C('
'+this.get('error')+'
')) .append(C(''))