diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/views/fms.js | 6 | ||||
-rw-r--r-- | www/js/views/reports.js | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/www/js/views/fms.js b/www/js/views/fms.js index ea21783..53cdc66 100644 --- a/www/js/views/fms.js +++ b/www/js/views/fms.js @@ -42,7 +42,11 @@ viewHeight = $(window).height(), contentHeight = viewHeight - header.outerHeight() - this.bottomMargin; - content.height( contentHeight - top ); + this.setHeight( content, contentHeight - top ); + }, + + setHeight: function(content, height) { + content.height(height); }, afterRender: function() {}, diff --git a/www/js/views/reports.js b/www/js/views/reports.js index de2b3c3..4690fb2 100644 --- a/www/js/views/reports.js +++ b/www/js/views/reports.js @@ -26,6 +26,10 @@ del.fail( function() { that.onRemoveDraft(el); } ); }, + setHeight: function(content, height) { + content.css( 'min-height', content + 'px'); + }, + useReport: function(e) { e.preventDefault(); var el = $(e.target); |