don't apply linkify effect to anchors containing images
This commit is contained in:
parent
c3bc0f70ef
commit
510ac8e114
1 changed files with 3 additions and 2 deletions
|
@ -73,6 +73,7 @@
|
||||||
* - Controls and progress bar were moved into #reveal
|
* - Controls and progress bar were moved into #reveal
|
||||||
* - All CSS is now much more explicit, rooted at #reveal, to prevent conflicts
|
* - All CSS is now much more explicit, rooted at #reveal, to prevent conflicts
|
||||||
* - Config option for disabling updates to URL, defaults to true
|
* - Config option for disabling updates to URL, defaults to true
|
||||||
|
* - Removed dependency on classList
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @author Hakim El Hattab | http://hakim.se
|
* @author Hakim El Hattab | http://hakim.se
|
||||||
|
@ -306,7 +307,7 @@ var Reveal = (function(){
|
||||||
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
for( var i = 0, len = nodes.length; i < len; i++ ) {
|
||||||
var node = nodes[i];
|
var node = nodes[i];
|
||||||
|
|
||||||
if( node.textContent && ( !node.className || !hasClass( node, 'roll' ) ) ) {
|
if( node.textContent && !node.querySelector( 'img' ) && ( !node.className || !hasClass( node, 'roll' ) ) ) {
|
||||||
addClass( node, 'roll' );
|
addClass( node, 'roll' );
|
||||||
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
|
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue