mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
Pass event in instead of using window.event, fixes exposé initialization to selected image in firefox
This commit is contained in:
parent
2e27d90d45
commit
a622113b0b
@ -296,13 +296,13 @@ function expose (widget)
|
|||||||
}
|
}
|
||||||
if (typeof this.options.expose_view != 'undefined' && this.options.expose_view )
|
if (typeof this.options.expose_view != 'undefined' && this.options.expose_view )
|
||||||
{
|
{
|
||||||
jQuery(this.node).on('click', function(){
|
jQuery(this.node).on('click', function(event){
|
||||||
self._init_blueimp_gallery(_value);
|
self._init_blueimp_gallery(event, _value);
|
||||||
}).addClass('et2_clickable');
|
}).addClass('et2_clickable');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
_init_blueimp_gallery: function (_value)
|
_init_blueimp_gallery: function (event, _value)
|
||||||
{
|
{
|
||||||
var mediaContent = [];
|
var mediaContent = [];
|
||||||
var nm = find_nextmatch(this);
|
var nm = find_nextmatch(this);
|
||||||
@ -310,7 +310,7 @@ function expose (widget)
|
|||||||
if(nm)
|
if(nm)
|
||||||
{
|
{
|
||||||
// Get the row that was clicked, find its index in the list
|
// Get the row that was clicked, find its index in the list
|
||||||
var current_entry = nm.controller.getRowByNode(window.event.srcElement);
|
var current_entry = nm.controller.getRowByNode(event.target);
|
||||||
current_index = current_entry.idx || 0;
|
current_index = current_entry.idx || 0;
|
||||||
|
|
||||||
// But before it goes, we'll pull everything we can
|
// But before it goes, we'll pull everything we can
|
||||||
|
Loading…
Reference in New Issue
Block a user