MDL-33731 Add exception for closebutton when drag/dropping activity chooser
authorAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Thu, 14 Jun 2012 10:30:13 +0000 (11:30 +0100)
committerAndrew Robert Nicols <andrew.nicols@luns.net.uk>
Thu, 14 Jun 2012 10:30:29 +0000 (11:30 +0100)
enrol/yui/notification/notification.js

index 352dd6e..8b91443 100644 (file)
@@ -76,6 +76,7 @@ Y.extend(DIALOGUE, Y.Overlay, {
                 if (this.get('draggable')) {
                     var titlebar = '#' + this.get('id') + ' .' + CSS.HEADER;
                     this.plug(Y.Plugin.Drag, {handles : [titlebar]});
+                    this.dd.addInvalid('div.closebutton');
                     Y.one(titlebar).setStyle('cursor', 'move');
                 }
                 break;