Missing change for 18faaa69bd

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-14 01:41:47 -04:00
parent c34ec5ddab
commit 3bcadd047b
3 changed files with 2 additions and 5 deletions

View File

@@ -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;

View File

@@ -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():

View File

@@ -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