Commit 56684089 authored by Kjetil Thuen's avatar Kjetil Thuen

Commented out log statements

parent 5c311a3a
...@@ -111,7 +111,7 @@ inScroll = false; ...@@ -111,7 +111,7 @@ inScroll = false;
}; };
var show_expanded_info = function() { var show_expanded_info = function() {
console.log("expanding"); // console.log("expanding");
var listElem = $('#studies_list li.selected'), var listElem = $('#studies_list li.selected'),
details, details,
...@@ -129,9 +129,9 @@ inScroll = false; ...@@ -129,9 +129,9 @@ inScroll = false;
var listTop = listElem.offset().top; var listTop = listElem.offset().top;
var scrollVal = listTop - tarTop - marginDiff; var scrollVal = listTop - tarTop - marginDiff;
console.log("target top: " + tarTop); // console.log("target top: " + tarTop);
console.log("list top: " + listTop); // console.log("list top: " + listTop);
console.log("Debouncing expand function at " + scrollVal); // console.log("Debouncing expand function at " + scrollVal);
$('body').animate({scrollTop: scrollVal}, 'fast'); $('body').animate({scrollTop: scrollVal}, 'fast');
...@@ -186,7 +186,7 @@ inScroll = false; ...@@ -186,7 +186,7 @@ inScroll = false;
$(window).bind('scrollstart', function(){ $(window).bind('scrollstart', function(){
if (scrollListenersEnabled) { if (scrollListenersEnabled) {
scrollInProgress = true; scrollInProgress = true;
console.log("scrollstart"); // console.log("scrollstart");
$('#expander:visible').slideUp(100); $('#expander:visible').slideUp(100);
} }
}); });
...@@ -195,23 +195,23 @@ inScroll = false; ...@@ -195,23 +195,23 @@ inScroll = false;
//IOS specific touch event //IOS specific touch event
if (scrollListenersEnabled) { if (scrollListenersEnabled) {
scrollInProgress = true; scrollInProgress = true;
console.log("touchmove"); // console.log("touchmove");
$('#expander:visible').hide(); $('#expander:visible').hide();
} else { } else {
console.log("scroll registered, but listener disabled"); // console.log("scroll registered, but listener disabled");
} }
}); });
$(window).bind('scrollstop', function(e){ $(window).bind('scrollstop', function(e){
if (scrollInProgress) { if (scrollInProgress) {
console.log("scrollstop"); // console.log("scrollstop");
find_and_select_element(); find_and_select_element();
} }
}); });
$('#studies_list li').click(function() { $('#studies_list li').click(function() {
console.log("click"); // console.log("click");
set_selected_element($(this).get()); set_selected_element($(this).get());
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment