MDL-59382 javascript: fix large styling for modals
authorRyan Wyllie <ryan@moodle.com>
Mon, 24 Jul 2017 06:53:32 +0000 (06:53 +0000)
committerRyan Wyllie <ryan@moodle.com>
Wed, 2 Aug 2017 04:47:42 +0000 (04:47 +0000)
lib/amd/build/modal.min.js
lib/amd/src/modal.js

index a469dda..d1b6f8e 100644 (file)
Binary files a/lib/amd/build/modal.min.js and b/lib/amd/build/modal.min.js differ
index 6cca43b..53ae0b7 100644 (file)
@@ -315,7 +315,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
             return;
         }
 
-        this.getRoot().addClass('large');
+        this.getModal().addClass('modal-lg');
     };
 
     /**
@@ -325,7 +325,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
      * @return {bool}
      */
     Modal.prototype.isLarge = function() {
-        return this.getRoot().hasClass('large');
+        return this.getModal().hasClass('modal-lg');
     };
 
     /**
@@ -338,7 +338,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
             return;
         }
 
-        this.getRoot().removeClass('large');
+        this.getModal().removeClass('modal-lg');
     };
 
     /**
@@ -348,7 +348,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
      * @return {bool}
      */
     Modal.prototype.isSmall = function() {
-        return !this.getRoot().hasClass('large');
+        return !this.getModal().hasClass('modal-lg');
     };
 
     /**