fix previewLinks target
parent
80c375fae8
commit
2cd988a7a3
|
@ -3778,11 +3778,13 @@
|
||||||
*/
|
*/
|
||||||
function onPreviewLinkClicked( event ) {
|
function onPreviewLinkClicked( event ) {
|
||||||
|
|
||||||
var url = event.target.getAttribute( 'href' );
|
if( event.currentTarget && event.currentTarget.hasAttribute( 'href' ) ) {
|
||||||
|
var url = event.currentTarget.getAttribute( 'href' );
|
||||||
if( url ) {
|
if( url ) {
|
||||||
showPreview( url );
|
showPreview( url );
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue