* zin: call functions is(tagName) to simplify code.

This commit is contained in:
liugang
2023-11-07 15:55:38 +08:00
parent 8791cdd284
commit 5cc4ae87d6
+1 -1
View File
@@ -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)