Permalink
Browse files

MDL-33292 Consume the new ability to move dialogues in chooser dialogues

  • Loading branch information...
1 parent 06a78ea commit 984ec46e0374bd89cbb41ff6a24556d7234d5d21 @andrewnicols andrewnicols committed May 23, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −1 enrol/yui/notification/notification.js
  2. +1 −0 lib/yui/chooserdialogue/chooserdialogue.js
@@ -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;
}
@@ -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

0 comments on commit 984ec46

Please sign in to comment.