This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/modal/history_view.js
2013-12-12 03:41:34 +01:00

19 lines
463 B
JavaScript

/**
This view handles rendering of the history of a post
@class HistoryView
@extends Discourse.View
@namespace Discourse
@module Discourse
**/
Discourse.HistoryView = Discourse.ModalBodyView.extend({
templateName: 'modal/history',
title: I18n.t('history'),
resizeModal: function(){
var viewPortHeight = $(window).height();
this.$(".modal-body").css("max-height", Math.floor(0.8 * viewPortHeight) + "px");
}.on("didInsertElement")
});