mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'MDL-33292-master-3' of git://git.luns.net.uk/moodle
This commit is contained in:
commit
93de786561
11
enrol/yui/notification/notification.js
vendored
11
enrol/yui/notification/notification.js
vendored
@ -73,6 +73,11 @@ Y.extend(DIALOGUE, Y.Overlay, {
|
||||
if (this.get('center') && !e.prevVal && e.newVal) {
|
||||
this.centerDialogue();
|
||||
}
|
||||
if (this.get('draggable')) {
|
||||
var titlebar = '#' + this.get('id') + ' .' + CSS.HEADER;
|
||||
this.plug(Y.Plugin.Drag, {handles : [titlebar]});
|
||||
Y.one(titlebar).setStyle('cursor', 'move');
|
||||
}
|
||||
break;
|
||||
}
|
||||
},
|
||||
@ -110,6 +115,10 @@ Y.extend(DIALOGUE, Y.Overlay, {
|
||||
center : {
|
||||
validator : Y.Lang.isBoolean,
|
||||
value : true
|
||||
},
|
||||
draggable : {
|
||||
validator : Y.Lang.isBoolean,
|
||||
value : false
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -372,4 +381,4 @@ M.core.confirm = CONFIRM;
|
||||
M.core.exception = EXCEPTION;
|
||||
M.core.ajaxException = AJAXEXCEPTION;
|
||||
|
||||
}, '@VERSION@', {requires:['base','node','overlay','event-key', 'moodle-enrol-notification-skin']});
|
||||
}, '@VERSION@', {requires:['base','node','overlay','event-key', 'moodle-enrol-notification-skin', 'dd-plugin']});
|
||||
|
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