From 5c4eda50d75e2544c117ec7a94cad02eb0d2e474 Mon Sep 17 00:00:00 2001 From: DracoBlue Date: Sun, 17 Jan 2016 18:46:39 +0100 Subject: [PATCH] FreeRooms-Bereich wird bei Split-View nicht gebraucht #38 --- static/js/views/EventCollectionView.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/static/js/views/EventCollectionView.js b/static/js/views/EventCollectionView.js index d884731..df7016e 100644 --- a/static/js/views/EventCollectionView.js +++ b/static/js/views/EventCollectionView.js @@ -18,8 +18,11 @@ define('views/EventCollectionView', ["Backbone", "config", "jquery", "views/Base var newsTable = $(this.el).find('.js_news'); newsTableBody.empty(); - newsTable.css('height', 'calc(90% - ' + ($('.free-rooms').outerHeight() + 38 + 100) + 'px)'); - newsTable.css('margin-bottom', '0'); + /* FIXME: hack damit das bei split nicht benutzt wird! hier wäre besseres CSS besser. */ + if (document.location.toString().indexOf('split.html') === -1) { + newsTable.css('height', 'calc(90% - ' + ($('.free-rooms').outerHeight() + 38 + 100) + 'px)'); + newsTable.css('margin-bottom', '0'); + } eventsCollection.forEach(function(event) { var view = new EventView({"model": event, "tagName": "tr"});