* zin: call functions is(tagName) to simplify code.
This commit is contained in:
+1
-1
@@ -1077,7 +1077,7 @@
|
||||
function setImageSize(image, maxWidth, maxHeight)
|
||||
{
|
||||
var $image = $(image);
|
||||
if($image.parent().prop('tagName') && $image.parent().prop('tagName').toLowerCase() == 'a') return;
|
||||
if($image.parent().is('a')) return;
|
||||
|
||||
/* If not set maxWidth, set it auto. */
|
||||
if(!maxWidth)
|
||||
|
||||
Reference in New Issue
Block a user