Do not show expose thumbnail for single media entry

This commit is contained in:
Hadi Nategh 2015-03-31 10:31:25 +00:00
parent ed2bed1b97
commit 69fe18d1e0
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);