Merge branch 'MDL-33292-master-3' of git://git.luns.net.uk/moodle
[moodle.git] / lib / yui / chooserdialogue / chooserdialogue.js
index 43a63be..ebc37e1 100644 (file)
@@ -46,8 +46,11 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
             this.overlay.render();
 
             // Set useful links
-            this.container = this.overlay.get('boundingBox').one('#choosercontainer');
+            this.container = this.overlay.get('boundingBox').one('.choosercontainer');
             this.options = this.container.all('.option input[type=radio]');
+
+            // Add the chooserdialogue class to the container for styling
+            this.overlay.get('boundingBox').addClass('chooserdialogue');
         },
 
         /**