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