Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
Merge branch 'develop' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
haukot committed Mar 25, 2014
2 parents 0387932 + a06dc53 commit eee10c9
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions app/views/web/schedules/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,21 @@
= render "day", day: configus.schedule.second_day.date, start_time: configus.schedule.second_day.start_time, finish_time: configus.schedule.second_day.finish_time
:javascript
jQuery(document).ready(function ($) {
$("td[data-hall]").children(".programm__schedule__lectures__lecture").each(function(){
var $local_this = $(this);
var parent_height = $local_this.parent().css('height');
if ($local_this.css('height') < parent_height) {
$local_this.css('min-height', parent_height);
}
});

function setHeightOfDivInTd() {
$("td[data-hall]").children(".programm__schedule__lectures__lecture").each(function(){
var $local_this = $(this);
var parent_height = $local_this.parent().css('height');
if ($local_this.css('min-height') != 0 && $local_this.css('height') < parent_height) {
$local_this.css('min-height', parent_height);
}
});
}


setHeightOfDivInTd();
$('.tab_button').on('click', function() {
$(this).siblings().removeClass('selected').end().next('dd').andSelf().addClass('selected');
setHeightOfDivInTd();
});

var next=$('.programm__next'), prev=$('.programm__prev');
Expand Down

0 comments on commit eee10c9

Please sign in to comment.