From a95425637894878426968e1b9efee5b02ff1fcf8 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 9 Jun 2015 14:55:40 -0400 Subject: [PATCH] Merge lazy-load and lazy-load-interactive, they now behave exactly the same --- mayan/apps/appearance/templates/appearance/base.html | 6 ------ mayan/apps/documents/widgets.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/mayan/apps/appearance/templates/appearance/base.html b/mayan/apps/appearance/templates/appearance/base.html index 17295a73a3..1095d56cf3 100644 --- a/mayan/apps/appearance/templates/appearance/base.html +++ b/mayan/apps/appearance/templates/appearance/base.html @@ -316,12 +316,6 @@ load_document_image($this); }, }); - - $('img.lazy-load-interactive').lazyload({ - appear: function(elements_left, settings) { - load_document_image($(this)); - } - }); }); {% block javascript %}{% endblock %} diff --git a/mayan/apps/documents/widgets.py b/mayan/apps/documents/widgets.py index aba59d75d3..24053b3cb1 100644 --- a/mayan/apps/documents/widgets.py +++ b/mayan/apps/documents/widgets.py @@ -24,7 +24,7 @@ class DocumentPageImageWidget(forms.widgets.Widget): if value: output = [] output.append('
') - output.append(document_html_widget(value, zoom=zoom, rotation=rotation, image_class='lazy-load-interactive', nolazyload=False, size=DISPLAY_SIZE)) + output.append(document_html_widget(value, zoom=zoom, rotation=rotation, image_class='lazy-load', nolazyload=False, size=DISPLAY_SIZE)) output.append('
') return mark_safe(''.join(output)) else: