v0.35: debug and part of bug 0018336.
--- 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():
--- 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");
--- 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 %}
- <form class="big-search-form search-form" action="{% url 'front_search' %}" autocomplete="off">
+ <form class="big-search-form search-form" action="{% url 'front_search' %}" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false">
<input class="big-search-input search-input" type="text" name="q" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false"
value="{{searchterms_input}}" placeholder="{% trans 'Rechercher' %}" />
</form>