mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-71671 core: Let YUI dialogues be inserted at given position
This commit is contained in:
parent
206023c15f
commit
b2698f641a
@ -76,7 +76,8 @@ DIALOGUE = function(config) {
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.HEADER + ' yui3-widget-hd"></div>'))
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.BODY + ' yui3-widget-bd"></div>'))
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.FOOTER + ' yui3-widget-ft"></div>')));
|
||||
Y.one(document.body).append(config.notificationBase);
|
||||
config.attachmentPoint = config.attachmentPoint || document.body;
|
||||
Y.one(config.attachmentPoint).append(config.notificationBase);
|
||||
config.srcNode = '#' + id;
|
||||
delete config.buttons; // Don't let anyone pass in buttons as we want to control these during init. addButton can be used later.
|
||||
DIALOGUE.superclass.constructor.apply(this, [config]);
|
||||
|
File diff suppressed because one or more lines are too long
@ -76,7 +76,8 @@ DIALOGUE = function(config) {
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.HEADER + ' yui3-widget-hd"></div>'))
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.BODY + ' yui3-widget-bd"></div>'))
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.FOOTER + ' yui3-widget-ft"></div>')));
|
||||
Y.one(document.body).append(config.notificationBase);
|
||||
config.attachmentPoint = config.attachmentPoint || document.body;
|
||||
Y.one(config.attachmentPoint).append(config.notificationBase);
|
||||
config.srcNode = '#' + id;
|
||||
delete config.buttons; // Don't let anyone pass in buttons as we want to control these during init. addButton can be used later.
|
||||
DIALOGUE.superclass.constructor.apply(this, [config]);
|
||||
|
3
lib/yui/src/notification/js/dialogue.js
vendored
3
lib/yui/src/notification/js/dialogue.js
vendored
@ -46,7 +46,8 @@ DIALOGUE = function(config) {
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.HEADER + ' yui3-widget-hd"></div>'))
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.BODY + ' yui3-widget-bd"></div>'))
|
||||
.append(Y.Node.create('<div class="' + CSS_CLASSES.FOOTER + ' yui3-widget-ft"></div>')));
|
||||
Y.one(document.body).append(config.notificationBase);
|
||||
config.attachmentPoint = config.attachmentPoint || document.body;
|
||||
Y.one(config.attachmentPoint).append(config.notificationBase);
|
||||
config.srcNode = '#' + id;
|
||||
delete config.buttons; // Don't let anyone pass in buttons as we want to control these during init. addButton can be used later.
|
||||
DIALOGUE.superclass.constructor.apply(this, [config]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user