From 3bcadd047b64ddc4071104c130429630dc86dd94 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sun, 14 Apr 2019 01:41:47 -0400 Subject: [PATCH] Missing change for 18faaa69bd9005e9e84332c5568cf1 Signed-off-by: Roberto Rosario --- mayan/apps/appearance/static/appearance/js/mayan_image.js | 3 ++- mayan/apps/documents/models/document_models.py | 2 -- mayan/apps/documents/models/document_version_models.py | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/mayan/apps/appearance/static/appearance/js/mayan_image.js b/mayan/apps/appearance/static/appearance/js/mayan_image.js index aa544d509d..2b87401d29 100644 --- a/mayan/apps/appearance/static/appearance/js/mayan_image.js +++ b/mayan/apps/appearance/static/appearance/js/mayan_image.js @@ -77,7 +77,7 @@ class MayanImage { // error or it was a cached image if (this.complete === false) { // It is a cached image, set the src attribute to - // trigger it's display. + // trigger its display. this.src = dataURL; } else { container.html( @@ -93,3 +93,4 @@ class MayanImage { MayanImage.timer = setTimeout(null); $.fn.matchHeight._maintainScroll = true; + diff --git a/mayan/apps/documents/models/document_models.py b/mayan/apps/documents/models/document_models.py index 5512a720ce..a2d084ca7f 100644 --- a/mayan/apps/documents/models/document_models.py +++ b/mayan/apps/documents/models/document_models.py @@ -143,8 +143,6 @@ class Document(models.Model): latest_version = self.latest_version if latest_version: return latest_version.get_api_image_url(*args, **kwargs) - else: - return '#' def invalidate_cache(self): for document_version in self.versions.all(): diff --git a/mayan/apps/documents/models/document_version_models.py b/mayan/apps/documents/models/document_version_models.py index 062e7c7343..edccfb6372 100644 --- a/mayan/apps/documents/models/document_version_models.py +++ b/mayan/apps/documents/models/document_version_models.py @@ -155,8 +155,6 @@ class DocumentVersion(models.Model): first_page = self.pages.first() if first_page: return first_page.get_api_image_url(*args, **kwargs) - else: - return '#' def get_intermidiate_file(self): cache_filename = self.cache_filename