From e921f06b146d14d4ab3ef7c22a2150ec9b79e6bc Mon Sep 17 00:00:00 2001 From: Zhangyu Date: Thu, 5 Sep 2024 02:22:49 +0000 Subject: [PATCH] * [taskk#127433] add can not deleted quoted question of thinkmulticolumn. --- lib/zin/wg/thinkmulticolumn/js/v1.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/zin/wg/thinkmulticolumn/js/v1.js b/lib/zin/wg/thinkmulticolumn/js/v1.js index 10733650b8..170ecaeaba 100644 --- a/lib/zin/wg/thinkmulticolumn/js/v1.js +++ b/lib/zin/wg/thinkmulticolumn/js/v1.js @@ -58,4 +58,12 @@ window.changeRequiredCols = function() isQuoted = true; } }); + /* 如果删除的比填列是被其他问题引用的列则不能删除,并弹出弹窗提示;如果不是被其他问题引用的列则成功删除,并且储存删除后的值。*/ + /* If the deleted column is a column referenced by other issues, it cannot be deleted and a pop-up prompt will appear; If the column is not referenced by other issues, it will be successfully deleted and the deleted value will be saved. */ + if(isQuoted) + { + $('.required-options .picker-box').zui('picker').$.setValue(requiredCols); + zui.Modal.alert({message: requiredColTip.replace(/%s/g, quotedIndex), icon: 'icon-exclamation-sign', iconClass: 'warning-pale rounded-full icon-2x', size: 'sm'}); + } + if(!isQuoted) localStorage.setItem('requiredCols', changedCols); }