mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-33292 Consume the new ability to move dialogues in chooser dialogues
This commit is contained in:
parent
06a78ea6a4
commit
984ec46e03
4
enrol/yui/notification/notification.js
vendored
4
enrol/yui/notification/notification.js
vendored
@ -74,7 +74,9 @@ Y.extend(DIALOGUE, Y.Overlay, {
|
||||
this.centerDialogue();
|
||||
}
|
||||
if (this.get('draggable')) {
|
||||
this.plug(Y.Plugin.Drag, {handles : ['#' + this.get('id') + ' .' + CSS.HEADER]});
|
||||
var titlebar = '#' + this.get('id') + ' .' + CSS.HEADER;
|
||||
this.plug(Y.Plugin.Drag, {handles : [titlebar]});
|
||||
Y.one(titlebar).setStyle('cursor', 'move');
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
1
lib/yui/chooserdialogue/chooserdialogue.js
vendored
1
lib/yui/chooserdialogue/chooserdialogue.js
vendored
@ -22,6 +22,7 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
|
||||
var params = {
|
||||
bodyContent : bodycontent.get('innerHTML'),
|
||||
headerContent : headercontent.get('innerHTML'),
|
||||
draggable : true,
|
||||
visible : false, // Hide by default
|
||||
zindex : 100, // Display in front of other items
|
||||
lightbox : true, // This dialogue should be modal
|
||||
|
Loading…
x
Reference in New Issue
Block a user