Skip to content

Commit

Permalink
MDL-60052 javascript: fix large styling for modals
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwyllie authored and xow committed Sep 22, 2017
1 parent cc60733 commit 9648379
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/amd/build/modal.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions lib/amd/src/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
return;
}

this.getRoot().addClass('large');
this.getModal().addClass('modal-lg');
};

/**
Expand All @@ -330,7 +330,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');
};

/**
Expand All @@ -343,7 +343,7 @@ define(['jquery', 'core/templates', 'core/notification', 'core/key_codes',
return;
}

this.getRoot().removeClass('large');
this.getModal().removeClass('modal-lg');
};

/**
Expand All @@ -353,7 +353,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');
};

/**
Expand Down

0 comments on commit 9648379

Please sign in to comment.