From 071837a8553702b88e07bceecfe02006359c3e33 Mon Sep 17 00:00:00 2001 From: guofeilong Date: Fri, 10 Mar 2023 08:58:01 +0800 Subject: [PATCH] * Adjust code for bug #32763 . --- module/dev/css/langitem.css | 4 ++-- www/js/my.full.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/dev/css/langitem.css b/module/dev/css/langitem.css index 813f346953..ba24381ece 100644 --- a/module/dev/css/langitem.css +++ b/module/dev/css/langitem.css @@ -8,7 +8,7 @@ .flex-center {display: flex; justify-content: center; align-items: center;} /* menu-tree */ -.menu-tree {flex: 0 0 180px; background: #fff; padding: 10px 10px; overflow: hidden;} +.menu-tree {flex: 0 0 200px; background: #fff; padding: 10px 10px; overflow: hidden;} .menu-tree > .tree {padding-top: 20px;} .tree ul {margin-bottom: 0;} #menuTree > li.has-list > ul > li {padding-left: 10px;} @@ -27,7 +27,7 @@ .form-item-content > .form-item {gap: 64px; height: 56px; align-items: center; position: relative; width: 500px;} .form-item-content > .form-item.w-expand {width: 700px;} .form-item-content > .form-item > .label {flex: 0 0 160px; padding-left: 40px; background: #F8F8F8; display: flex; align-items: center; color: currentColor; font-size: 13px;} -.form-item-content > .form-item > .input-group {margin-left: 20px; width:200px; height:32px;} +.form-item-content > .form-item > .input-group {margin-left: 20px; width:180px; height:32px;} .form-item-content > .form-item > .input-group > .input-group-addon {flex: 1 1 30%;} .form-item-content > .form-item > .input-control > input {margin-left: 40px;} .form-item-content > .form-item.active .icon {display: unset;} diff --git a/www/js/my.full.js b/www/js/my.full.js index 98f0533a10..41f5847ee2 100755 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -11,13 +11,13 @@ if(config.currentMethod === 'login' || config.currentModule === 'repo' || config.currentMethod.indexOf('edit') != -1 || config.currentMethod.indexOf('import') != -1) return; setTimeout(function() { - var form = $('.table-form').parent(); + var form = $('form[method=post]'); if(form.length) { - if($(form).attr('target') == 'hiddenwin' && config.currentModule != 'program') return; + if($(form).attr('target') == 'hiddenwin' && config.currentModule.indexOf('program') != -1 && config.currentModule.indexOf('project') != -1) return; var formDataID = config.currentMethod + '-' + config.currentModule + '-' + $(form).attr("id"); var formDataStored = $.zui.store.get(formDataID); - if(formDataStored) + if(formDataStored && formDataStored.length) { var message = lang.confirmDraft.replace('%name%', lang[config.currentModule] ? lang[config.currentModule] : ''); new $.zui.Messager(message, { @@ -50,7 +50,7 @@ } else if((item.name.indexOf(']') != -1) && (item.name.indexOf('[') != -1)) { - var formItem = $('[id^=' + item.name.replace('[', '').replace(']', '') + ']'); + var formItem = $('#' + item.name.replace('[', '').replace(']', '')); } else {