MDL-59382 javascript: fix large styling for modals

This commit is contained in:
Ryan Wyllie 2017-07-24 06:53:32 +00:00
parent 74eedb28b3
commit 4defa05fdc
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View 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');
};
/**