From 1be743f25af7e42eddac896f913a985daee25e91 Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 18 Jan 2024 15:32:38 +0800 Subject: [PATCH] * zin: never update url on load form in modal. --- www/js/zui3/zin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/js/zui3/zin.js b/www/js/zui3/zin.js index a98a1690c4..338541e1e9 100644 --- a/www/js/zui3/zin.js +++ b/www/js/zui3/zin.js @@ -872,6 +872,8 @@ if(!$form.length) $form = $target.find('form'); if(!$form.length) return console.warn('[APP] ', `cannot find form from target "${options.target}"`); + if(options.partial === undefined) options.partial = !!$target.closest('.modal').length; + const id = $form.attr('id'); if(!id) return console.warn('[APP] ', `form from "${options.target}" has no id`);