mirror of
https://github.com/discourse/discourse.git
synced 2025-02-13 19:52:46 +08:00
424a3b042a
REFACTOR: ES6ified all the modals
12 lines
348 B
JavaScript
12 lines
348 B
JavaScript
import ModalBodyView from "discourse/views/modal-body";
|
|
|
|
export default ModalBodyView.extend({
|
|
templateName: 'modal/history',
|
|
title: I18n.t('history'),
|
|
|
|
resizeModal: function(){
|
|
const viewPortHeight = $(window).height();
|
|
this.$(".modal-body").css("max-height", Math.floor(0.8 * viewPortHeight) + "px");
|
|
}.on("didInsertElement")
|
|
});
|