forked from extern/egroupware
Do not show expose thumbnail for single media entry
This commit is contained in:
parent
3be8c38c0d
commit
d6d2d27e9e
@ -241,8 +241,6 @@ var et2_description = expose(et2_baseWidget.extend([et2_IDetachedDOM],
|
|||||||
$span.click(function(e) {
|
$span.click(function(e) {
|
||||||
if (self.options.expose_view && typeof self.options.mime !='undefined' && self.options.mime.match(/video\/|image\/|audio\//,'ig'))
|
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);
|
self._init_blueimp_gallery(e, href);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -161,8 +161,6 @@ var et2_image = expose(et2_baseWidget.extend([et2_IDetachedDOM],
|
|||||||
{
|
{
|
||||||
if (self.options.expose_view)
|
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);
|
self._init_blueimp_gallery(e,_value);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -431,6 +431,8 @@ function expose (widget)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
mediaContent = this.getMedia(_value);
|
mediaContent = this.getMedia(_value);
|
||||||
|
// Do not show thumbnail indicator on single expose view
|
||||||
|
this.expose_options.thumbnailIndicators = false;
|
||||||
}
|
}
|
||||||
this.expose_options.index = current_index;
|
this.expose_options.index = current_index;
|
||||||
gallery = blueimp.Gallery(mediaContent, this.expose_options);
|
gallery = blueimp.Gallery(mediaContent, this.expose_options);
|
||||||
|
Loading…
Reference in New Issue
Block a user