Révision 62e0cc08
Ajouté par Assos Assos il y a plus de 3 ans
drupal7/sites/all/modules/calendar/js/calendar_overlap.js | ||
---|---|---|
61 | 61 |
$(document).unbind("mousemove", performDrag).unbind("mouseup", endDrag); |
62 | 62 |
} |
63 | 63 |
}); |
64 |
|
|
65 |
// Size the window |
|
66 |
calendar_resizeViewport($); |
|
67 |
} |
|
68 |
}; |
|
64 |
} |
|
65 |
}; |
|
69 | 66 |
})(jQuery); |
70 | 67 |
|
71 | 68 |
// Scroll the viewport to the first item |
72 | 69 |
function calendar_scrollToFirst($) { |
73 | 70 |
if ($('div.first_item').size() > 0 ) { |
74 | 71 |
var y = $('div.first_item').offset().top - $('#single-day-container').offset().top ; |
75 |
$('#single-day-container').scrollTop(y); |
|
72 |
if ($('#single-day-container').length > 0) { |
|
73 |
var top = $('#single-day-container').offset().top; |
|
74 |
} |
|
76 | 75 |
} |
77 | 76 |
} |
78 | 77 |
|
79 |
// Size the single day view |
|
80 |
function calendar_resizeViewport($) { |
|
81 |
// Size of the browser window |
|
82 |
var viewportHeight = window.innerHeight ? window.innerHeight : $(window).height(); |
|
83 |
var top = $('#single-day-container').offset().top; |
|
84 |
|
|
85 |
// Give it a 20 pixel margin at the bottom |
|
86 |
//$('#single-day-container').height(viewportHeight - top - 20); |
|
87 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules