Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33292 Add ability to move (drag) M.core.dialogue

  • Loading branch information...
commit 06a78ea6a42e9e8f4838fbf427108711176781a2 1 parent 371409f
@andrewnicols andrewnicols authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 enrol/yui/notification/notification.js
View
9 enrol/yui/notification/notification.js
@@ -73,6 +73,9 @@ Y.extend(DIALOGUE, Y.Overlay, {
if (this.get('center') && !e.prevVal && e.newVal) {
this.centerDialogue();
}
+ if (this.get('draggable')) {
+ this.plug(Y.Plugin.Drag, {handles : ['#' + this.get('id') + ' .' + CSS.HEADER]});
+ }
break;
}
},
@@ -110,6 +113,10 @@ Y.extend(DIALOGUE, Y.Overlay, {
center : {
validator : Y.Lang.isBoolean,
value : true
+ },
+ draggable : {
+ validator : Y.Lang.isBoolean,
+ value : false
}
}
});
@@ -372,4 +379,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']});
Please sign in to comment.
Something went wrong with that request. Please try again.