Do not show expose thumbnail for single media entry

This commit is contained in:
Hadi Nategh 2015-03-31 14:03:10 +00:00
parent 3be8c38c0d
commit d6d2d27e9e
3 changed files with 2 additions and 4 deletions

View File

@ -241,8 +241,6 @@ var et2_description = expose(et2_baseWidget.extend([et2_IDetachedDOM],
$span.click(function(e) {
if (self.options.expose_view && typeof self.options.mime !='undefined' && self.options.mime.match(/video\/|image\/|audio\//,'ig'))
{
// Do not show thumbnail indicator for single expose view
self.expose_options.thumbnailIndicators = false;
self._init_blueimp_gallery(e, href);
}
else

View File

@ -161,8 +161,6 @@ var et2_image = expose(et2_baseWidget.extend([et2_IDetachedDOM],
{
if (self.options.expose_view)
{
// Do not show thumbnail indicator on single expose view
self.expose_options.thumbnailIndicators = false;
self._init_blueimp_gallery(e,_value);
}
else

View File

@ -431,6 +431,8 @@ function expose (widget)
else
{
mediaContent = this.getMedia(_value);
// Do not show thumbnail indicator on single expose view
this.expose_options.thumbnailIndicators = false;
}
this.expose_options.index = current_index;
gallery = blueimp.Gallery(mediaContent, this.expose_options);