Skip to content

Commit

Permalink
FreeRooms-Bereich wird bei Split-View nicht gebraucht #38
Browse files Browse the repository at this point in the history
  • Loading branch information
DracoBlue committed Jan 17, 2016
1 parent 37c2b0a commit 5c4eda5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions static/js/views/EventCollectionView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"});
Expand Down

0 comments on commit 5c4eda5

Please sign in to comment.