Disable the fancybox caption link if the document is in the trash.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
saving the database and to only provision 1 database.
|
||||
* Remove use of hard coded font icon for document page
|
||||
rendering busy indicator.
|
||||
* Disable the fancybox caption link if the document is
|
||||
in the trash.
|
||||
|
||||
3.1.3 (2018-09-27)
|
||||
==================
|
||||
|
||||
@@ -59,7 +59,8 @@ class DocumentPageThumbnailWidget(object):
|
||||
return render_to_string(
|
||||
template_name='documents/widgets/document_thumbnail.html',
|
||||
context={
|
||||
'disable_title_link': False,
|
||||
# Disable the clickable link if the document is in the trash
|
||||
'disable_title_link': instance.in_trash,
|
||||
'gallery_name': 'document_list',
|
||||
'instance': instance,
|
||||
'size_preview_width': setting_preview_width.value,
|
||||
|
||||
Reference in New Issue
Block a user