diff --git a/apps/main/templates/base.html b/apps/main/templates/base.html
index 101caed080..311d930dc8 100644
--- a/apps/main/templates/base.html
+++ b/apps/main/templates/base.html
@@ -139,6 +139,16 @@
'type' : 'image',
'autoScale' : true
});
+
+ $("a.fancybox-staging").fancybox({
+ 'titleShow' : true,
+ 'transitionIn' : 'elastic',
+ 'transitionOut' : 'elastic',
+ 'easingIn' : 'easeOutBack',
+ 'easingOut' : 'easeInBack',
+ 'type' : 'image',
+ 'autoScale' : true
+ });
$("a.fancybox-noscaling").fancybox({
'titleShow' : false,
diff --git a/apps/sources/widgets.py b/apps/sources/widgets.py
index ae5bf8e1bc..f55223290a 100644
--- a/apps/sources/widgets.py
+++ b/apps/sources/widgets.py
@@ -28,7 +28,7 @@ class FamFamRadioSelect(forms.widgets.RadioSelect):
def staging_file_thumbnail(staging_file):
try:
staging_file.get_valid_image()
- template = u'
'
+ template = u'
'
except:
template = u'
'
@@ -36,5 +36,6 @@ def staging_file_thumbnail(staging_file):
'url': reverse('staging_file_preview', args=[staging_file.source.source_type, staging_file.source.pk, staging_file.id]),
'thumbnail': reverse('staging_file_thumbnail', args=[staging_file.source.pk, staging_file.id]),
'static_url': settings.STATIC_URL,
- 'string': _(u'thumbnail')
+ 'string': _(u'thumbnail'),
+ 'filename': staging_file.filename
})