MDL-60052 javascript: fix large styling for modals

This commit is contained in:
Ryan Wyllie
2017-09-22 10:00:02 +08:00
committed by John Okely
parent 50126511aa
commit aecfdf39dd
2 changed files with 5 additions and 5 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -4
View File
@@ -324,7 +324,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
return;
}
this.getRoot().addClass('large');
this.getModal().addClass('modal-lg');
};
/**
@@ -334,7 +334,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');
};
/**
@@ -347,7 +347,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
return;
}
this.getRoot().removeClass('large');
this.getModal().removeClass('modal-lg');
};
/**
@@ -357,7 +357,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');
};
/**