From 4e19abf36edf23107992bd6ffa1f0844c8cd4c0a Mon Sep 17 00:00:00 2001 From: FreemanPancake Date: Tue, 19 Nov 2024 15:34:50 +0800 Subject: [PATCH] fix: actions.js get img tag. --- .../static/djangocms_version_locking/js/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangocms_version_locking/static/djangocms_version_locking/js/actions.js b/djangocms_version_locking/static/djangocms_version_locking/js/actions.js index 0001b19..8d7ecdf 100644 --- a/djangocms_version_locking/static/djangocms_version_locking/js/actions.js +++ b/djangocms_version_locking/static/djangocms_version_locking/js/actions.js @@ -73,7 +73,7 @@ li_anchor.setAttributeNode(href); /* move the an image element */ - var existing_icon_span = $(item).children('span'); + var existing_icon_span = $(item).children('span, img'); li_anchor.appendChild(existing_icon_span[0]); /* create the button text */