From 5cc4ae87d6fe048a573161b568eb83bd0b458d2a Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 7 Nov 2023 15:55:38 +0800 Subject: [PATCH] * zin: call functions is(tagName) to simplify code. --- www/js/zui3/zin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/zui3/zin.js b/www/js/zui3/zin.js index d7f7bcc857..a1d6833d3e 100644 --- a/www/js/zui3/zin.js +++ b/www/js/zui3/zin.js @@ -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)