# HG changeset patch # User cavaliet # Date 1386589651 -3600 # Node ID 959b6af4d223c03967e443788e4a78f375c21f1f # Parent 53b545f291893a7a722cfb12b7783753ffdd44ba v0.35: debug and part of bug 0018336. diff -r 53b545f29189 -r 959b6af4d223 src/jocondelab/__init__.py --- a/src/jocondelab/__init__.py Mon Dec 09 12:12:25 2013 +0100 +++ b/src/jocondelab/__init__.py Mon Dec 09 12:47:31 2013 +0100 @@ -1,4 +1,4 @@ -VERSION = (0, 34, 0, "final", 0) +VERSION = (0, 35, 0, "final", 0) def get_version(): diff -r 53b545f29189 -r 959b6af4d223 src/jocondelab/static/jocondelab/js/front-search.js --- a/src/jocondelab/static/jocondelab/js/front-search.js Mon Dec 09 12:12:25 2013 +0100 +++ b/src/jocondelab/static/jocondelab/js/front-search.js Mon Dec 09 12:47:31 2013 +0100 @@ -44,7 +44,7 @@ } function testIfLastLiInViewport(){ var el = $($(".results ul")[0]).children().last()[0]; - if ( isElementInViewport(el) ) { + if( (typeof el!=="undefined") && isElementInViewport(el) ) { // Last li is visible, so we have to call next page manually if (typeof queryobj === "object" && queryobj) { $(window).trigger("scroll.ajaxload"); diff -r 53b545f29189 -r 959b6af4d223 src/jocondelab/templates/jocondelab/front_search.html --- a/src/jocondelab/templates/jocondelab/front_search.html Mon Dec 09 12:12:25 2013 +0100 +++ b/src/jocondelab/templates/jocondelab/front_search.html Mon Dec 09 12:47:31 2013 +0100 @@ -20,7 +20,7 @@ {% block main %} -
+