diff --git a/mayan/apps/documents/widgets.py b/mayan/apps/documents/widgets.py index 91d167f5f9..006c890d1f 100644 --- a/mayan/apps/documents/widgets.py +++ b/mayan/apps/documents/widgets.py @@ -119,7 +119,7 @@ def document_html_widget(document, click_view=None, page=DEFAULT_PAGE_NUMBER, zo if nolazyload: result.append(u'%s' % (preview_view, alt_text)) else: - result.append(u'%s' % (image_class, preview_view, settings.STATIC_URL, alt_text)) + result.append(u'%s' % (image_class, preview_view, settings.STATIC_URL, alt_text)) result.append(u'' % (preview_view, alt_text)) if click_view: diff --git a/mayan/apps/main/templates/base.html b/mayan/apps/main/templates/base.html index e053770459..59ba2f6d01 100644 --- a/mayan/apps/main/templates/base.html +++ b/mayan/apps/main/templates/base.html @@ -213,7 +213,7 @@ } function load_document_image(image) { - $.get( image.attr('data-original'), function( result ) { + $.get( image.attr('data-src'), function( result ) { if (result.status == 'success') { image.attr('src', result.data); } else if (result.detail == 'unknown_file_format') { @@ -241,7 +241,7 @@ appear: function(elements_left, settings) { var $this = $(this); $this.removeClass('lazy-load-carousel'); - load_document_image($(this)); + load_document_image($this); }, event: 'scrollstop' }); diff --git a/mayan/apps/sources/widgets.py b/mayan/apps/sources/widgets.py index e0cbb66fff..5c163f759e 100644 --- a/mayan/apps/sources/widgets.py +++ b/mayan/apps/sources/widgets.py @@ -74,7 +74,7 @@ def staging_file_html_widget(staging_file, click_view=None, page=DEFAULT_PAGE_NU if nolazyload: result.append(u'%s' % (preview_view, alt_text)) else: - result.append(u'%s' % (image_class, preview_view, settings.STATIC_URL, alt_text)) + result.append(u'%s' % (image_class, preview_view, settings.STATIC_URL, alt_text)) result.append(u'' % (preview_view, alt_text)) if click_view: