mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 13:17:52 +08:00
12 lines
358 B
JavaScript
12 lines
358 B
JavaScript
import ModalBodyView from "discourse/views/modal-body";
|
|
|
|
export default ModalBodyView.extend({
|
|
templateName: 'modal/raw_email',
|
|
title: I18n.t('raw_email.title'),
|
|
|
|
resizeModal: function(){
|
|
const viewPortHeight = $(window).height();
|
|
this.$(".modal-body").css("max-height", Math.floor(0.8 * viewPortHeight) + "px");
|
|
}.on("didInsertElement")
|
|
});
|