fix js var names
This commit is contained in:
parent
3e5316e0c1
commit
54f3253c32
|
@ -212,7 +212,7 @@ function shift_controller() {
|
||||||
|
|
||||||
return [
|
return [
|
||||||
$shift['name'],
|
$shift['name'],
|
||||||
Shift_view($shift, $shifttype, $room, $angeltypes, $user_shifts, $shift_signup_state)
|
Shift_view($shift, $shifttype, $room, $angeltypes, $shift_signup_state)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ function Shift_signup_button_render($shift, $angeltype, $user_angeltype = null,
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function Shift_view($shift, $shifttype, $room, $angeltypes_source, $user_shifts, ShiftSignupState $shift_signup_state) {
|
function Shift_view($shift, $shifttype, $room, $angeltypes_source, ShiftSignupState $shift_signup_state) {
|
||||||
global $privileges;
|
global $privileges;
|
||||||
|
|
||||||
$shift_admin = in_array('admin_shifts', $privileges);
|
$shift_admin = in_array('admin_shifts', $privileges);
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
*/
|
*/
|
||||||
$(document).ready(
|
$(document).ready(
|
||||||
function() {
|
function() {
|
||||||
var time_lanes = $(".shift-calendar .time");
|
var timeLanes = $(".shift-calendar .time");
|
||||||
var headers = $(".shift-calendar .header");
|
var headers = $(".shift-calendar .header");
|
||||||
var top_reference = $(".container-fluid .row");
|
var topReference = $(".container-fluid .row");
|
||||||
var top = headers.offset().top;
|
var top = headers.offset().top;
|
||||||
var left = 15;
|
var left = 15;
|
||||||
time_lanes.css({
|
timeLanes.css({
|
||||||
"position" : "relative",
|
"position" : "relative",
|
||||||
"z-index" : 1000
|
"z-index" : 1000
|
||||||
});
|
});
|
||||||
|
@ -18,12 +18,12 @@ $(document).ready(
|
||||||
});
|
});
|
||||||
$(window).scroll(
|
$(window).scroll(
|
||||||
function() {
|
function() {
|
||||||
time_lanes.css({
|
timeLanes.css({
|
||||||
"left" : Math.max(0, $(window).scrollLeft() - left) + "px"
|
"left" : Math.max(0, $(window).scrollLeft() - left) + "px"
|
||||||
});
|
});
|
||||||
headers.css({
|
headers.css({
|
||||||
"top" : Math.max(0, $(window).scrollTop() - top
|
"top" : Math.max(0, $(window).scrollTop() - top
|
||||||
+ top_reference.offset().top)
|
+ topReference.offset().top)
|
||||||
+ "px"
|
+ "px"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue