From 8a69021d9b0ef1a07363b769def3bb071c7d190d Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 13 Apr 2023 16:00:40 +0800 Subject: [PATCH] * code for issue #776. --- module/doc/css/selectlibtype.css | 1 + module/doc/js/common.js | 2 +- module/doc/lang/zh-cn.php | 2 +- module/doc/view/createtexttype.html.php | 3 +-- module/doc/view/edittexttype.html.php | 1 - module/doc/view/selectlibtype.html.php | 4 ++-- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/module/doc/css/selectlibtype.css b/module/doc/css/selectlibtype.css index 61649d1aea..7b4cf2292b 100644 --- a/module/doc/css/selectlibtype.css +++ b/module/doc/css/selectlibtype.css @@ -1,3 +1,4 @@ #lib_chosen.chosen-container .chosen-results {max-height: 100px;} .radio-inline+.radio-inline { margin-top: 0; margin-left: 0px;} .radio-inline {margin-right: 10px;} +#mainContent{height:310px;} diff --git a/module/doc/js/common.js b/module/doc/js/common.js index e452ecb301..8ad498664e 100644 --- a/module/doc/js/common.js +++ b/module/doc/js/common.js @@ -32,7 +32,7 @@ function loadExecutions(projectID) $('#executionBox').load(link, function() { var $extension = $('#executionBox').find('select'); - $extension.attr('data-placeholder', holders.execution).attr('onchange', "loadObjectModules('execution', this.value)").picker(); + $extension.attr('onchange', "loadObjectModules('execution', this.value)").picker(); if($extension.hasClass('disabled')) $('#executionBox').find('.picker').addClass('disabled'); }); loadObjectModules('project', projectID); diff --git a/module/doc/lang/zh-cn.php b/module/doc/lang/zh-cn.php index b4d576f400..f7e12c729e 100644 --- a/module/doc/lang/zh-cn.php +++ b/module/doc/lang/zh-cn.php @@ -341,7 +341,7 @@ $lang->doc->noticeAcl['doc']['private'] = '只有创建者自己可以访问。' $lang->doc->placeholder = new stdclass(); $lang->doc->placeholder->url = '相应的链接地址'; -$lang->doc->placeholder->execution = '执行为空时,创建文件在项目库下'; +$lang->doc->placeholder->execution = '执行为空时,创建文档在项目库下'; $lang->doc->summary = "本页共 %s 个附件,共计 %s,其中%s。"; $lang->doc->ge = '个'; diff --git a/module/doc/view/createtexttype.html.php b/module/doc/view/createtexttype.html.php index 5e74100e8d..730b6f140e 100644 --- a/module/doc/view/createtexttype.html.php +++ b/module/doc/view/createtexttype.html.php @@ -71,7 +71,7 @@ project : $objectID, "class='form-control picker-select' onchange=loadExecutions(this.value)");?> app->tab == 'doc' and $config->vision == 'rnd'):?> doc->execution?> - doc->placeholder->execution}' onchange='loadObjectModules(\"execution\", this.value)'")?> + @@ -150,7 +150,6 @@ doc->textTypes);?> -doc->placeholder);?> doc->create->requiredFields . ',');?> error->notempty, $lang->doc->lib));?> diff --git a/module/doc/view/edittexttype.html.php b/module/doc/view/edittexttype.html.php index e1f73ed137..89cba4226b 100644 --- a/module/doc/view/edittexttype.html.php +++ b/module/doc/view/edittexttype.html.php @@ -148,7 +148,6 @@ $(function() doc->confirmUpdateContent);?> id);?> draft);?> -doc->placeholder);?> doc->defaultSave);?> error->notempty, $lang->doc->title));?> diff --git a/module/doc/view/selectlibtype.html.php b/module/doc/view/selectlibtype.html.php index 93a3554b6d..8ec16d6261 100644 --- a/module/doc/view/selectlibtype.html.php +++ b/module/doc/view/selectlibtype.html.php @@ -36,7 +36,7 @@ doc->project;?> doc->execution?> - doc->placeholder->execution}' onchange='loadObjectModules(\"execution\", this.value)'")?> + @@ -53,7 +53,6 @@ -doc->placeholder);?>