')
output.append(u'
%(page_string)s %(page)s
' % {'page_string': ugettext(u'Page'), 'page': page.page_number})
output.append(
document_html_widget(
@@ -124,8 +124,7 @@ def document_html_widget(document, click_view=None, page=DEFAULT_PAGE_NUMBER, zo
if nolazyload:
result.append(u'

' % (preview_view, alt_text))
else:
- result.append(u'

' % (image_class, preview_view, settings.STATIC_URL, alt_text))
- result.append(u'
' % (preview_view, alt_text))
+ result.append(u'

' % (image_class, preview_view, settings.STATIC_URL, alt_text))
if click_view:
result.append(u'')
diff --git a/mayan/apps/main/static/images/ajax-loader.gif b/mayan/apps/main/static/images/ajax-loader.gif
deleted file mode 100644
index 3288d1035d..0000000000
Binary files a/mayan/apps/main/static/images/ajax-loader.gif and /dev/null differ
diff --git a/mayan/apps/main/static/main/icons/hourglass.png b/mayan/apps/main/static/main/icons/hourglass.png
new file mode 100644
index 0000000000..cd14446b9f
Binary files /dev/null and b/mayan/apps/main/static/main/icons/hourglass.png differ
diff --git a/mayan/apps/main/static/packages/jquery.scrollstop.js b/mayan/apps/main/static/packages/jquery.scrollstop.js
deleted file mode 100644
index a0bb637100..0000000000
--- a/mayan/apps/main/static/packages/jquery.scrollstop.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/* http://james.padolsey.com/javascript/special-scroll-events-for-jquery/ */
-
-(function(){
-
- var special = jQuery.event.special,
- uid1 = "D" + (+new Date()),
- uid2 = "D" + (+new Date() + 1);
-
- special.scrollstart = {
- setup: function() {
-
- var timer,
- handler = function(evt) {
-
- var _self = this,
- _args = arguments;
-
- if (timer) {
- clearTimeout(timer);
- } else {
- evt.type = "scrollstart";
- jQuery.event.dispatch.apply(_self, _args);
- }
-
- timer = setTimeout( function(){
- timer = null;
- }, special.scrollstop.latency);
-
- };
-
- jQuery(this).bind("scroll", handler).data(uid1, handler);
-
- },
- teardown: function(){
- jQuery(this).unbind( "scroll", jQuery(this).data(uid1) );
- }
- };
-
- special.scrollstop = {
- latency: 300,
- setup: function() {
-
- var timer,
- handler = function(evt) {
-
- var _self = this,
- _args = arguments;
-
- if (timer) {
- clearTimeout(timer);
- }
-
- timer = setTimeout( function(){
-
- timer = null;
- evt.type = "scrollstop";
- jQuery.event.dispatch.apply(_self, _args);
-
-
- }, special.scrollstop.latency);
-
- };
-
- jQuery(this).bind("scroll", handler).data(uid2, handler);
-
- },
- teardown: function() {
- jQuery(this).unbind( "scroll", jQuery(this).data(uid2) );
- }
- };
-
-})();
\ No newline at end of file
diff --git a/mayan/apps/main/templates/main/base.html b/mayan/apps/main/templates/main/base.html
index 6ff7385695..4d16351603 100644
--- a/mayan/apps/main/templates/main/base.html
+++ b/mayan/apps/main/templates/main/base.html
@@ -364,7 +364,6 @@
-
@@ -485,13 +484,13 @@
});
$('img.lazy-load-carousel').lazyload({
- container: $(".carousel-container"),
+ threshold : 400,
+ container: $("#carousel-container"),
appear: function(elements_left, settings) {
var $this = $(this);
$this.removeClass('lazy-load-carousel');
load_document_image($this);
},
- event: 'scrollstop'
});
$('img.lazy-load-interactive').lazyload({
diff --git a/mayan/apps/sources/widgets.py b/mayan/apps/sources/widgets.py
index eafa687f84..669cf94c4d 100644
--- a/mayan/apps/sources/widgets.py
+++ b/mayan/apps/sources/widgets.py
@@ -54,7 +54,7 @@ def staging_file_html_widget(staging_file, click_view=None, page=DEFAULT_PAGE_NU
if nolazyload:
result.append(u'

' % (preview_view, alt_text))
else:
- result.append(u'

' % (image_class, preview_view, settings.STATIC_URL, alt_text))
+ result.append(u'

' % (image_class, preview_view, settings.STATIC_URL, alt_text))
result.append(u'
' % (preview_view, alt_text))
if click_view: