Removed obsolete $ in source files

This commit is contained in:
Manuel Cillero 2017-08-29 14:13:02 +02:00
parent a39c010e06
commit e5f2b64d98
146 changed files with 836 additions and 1081 deletions

View file

@ -1,4 +1,3 @@
// $Id: calendar_overlap.js,v 1.1.2.1 2010/11/28 23:31:28 karens Exp $
/*
* Create the splitter, set the viewport size, and set the position of the scrollbar to the first item.
*/
@ -8,16 +7,16 @@ Drupal.behaviors.calendarSetScroll = function (context) {
$('.header-body-divider:not(.header-body-divider-processed)').each(function() {
var divider = $(this).addClass('header-body-divider-processed');
var start_y = divider.offset().top;
// Add the grippie icon
// Add the grippie icon
$(this).prepend('<div class="grippie"></div>').mousedown(startDrag);
function startDrag(e) {
start_y = divider.offset().top;
$(document).mousemove(performDrag).mouseup(endDrag);
return false;
}
function performDrag(e) {
var offset = e.pageY - start_y;
var mwc = $('#multi-day-container');
@ -25,25 +24,25 @@ Drupal.behaviors.calendarSetScroll = function (context) {
start_y = divider.offset().top;
return false;
}
function endDrag(e) {
$(document).unbind("mousemove", performDrag).unbind("mouseup", endDrag);
}
});
$('.single-day-footer:not(.single-day-footer-processed)').each(function() {
var divider = $(this).addClass('single-day-footer-processed');
var start_y = divider.offset().top;
// Add the grippie icon
// Add the grippie icon
$(this).prepend('<div class="grippie"></div>').mousedown(startDrag);
function startDrag(e) {
start_y = divider.offset().top;
$(document).mousemove(performDrag).mouseup(endDrag);
return false;
}
function performDrag(e) {
var offset = e.pageY - start_y;
var sdc = $('#single-day-container');
@ -51,12 +50,12 @@ Drupal.behaviors.calendarSetScroll = function (context) {
start_y = divider.offset().top;
return false;
}
function endDrag(e) {
$(document).unbind("mousemove", performDrag).unbind("mouseup", endDrag);
}
});
// Size the window
calendar_resizeViewport();
}
@ -69,14 +68,13 @@ function calendar_scrollToFirst() {
}
}
// Size the single day view
// Size the single day view
function calendar_resizeViewport() {
// Size of the browser window
var viewportHeight = window.innerHeight ? window.innerHeight : $(window).height();
var top = $('#single-day-container').offset().top;
$('#multi-day-container').height(75);
// Give it a 20 pixel margin at the bottom
$('#single-day-container').height(Math.max(400,viewportHeight - top - 20));
}