Last modified by Super Admin on 2026/04/05 18:59

From version Icon 35.1 Icon
edited by Super Admin
on 2026/03/10 14:36
Change comment: There is no comment for this version
To version Icon 34.1 Icon
edited by Super Admin
on 2026/03/10 14:35
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -19,6 +19,10 @@
19 19  ## --- 学校基本情報フィールド ---
20 20  #set($schoolCode = $doc.getValue('schoolCode'))
21 21  #set($schoolName = $doc.getValue('schoolName'))
22 +## ページタイトルを学校名に設定(デフォルトでは学校コードが表示されるため)
23 +#if($schoolName && $schoolName != '')
24 +$!doc.setTitle($schoolName)
25 +#end
22 22  #set($prefecture = $doc.getValue('prefecture'))
23 23  #set($city = $doc.getValue('city'))
24 24  #set($classCount = $doc.getValue('classCount'))
... ... @@ -1010,13 +1010,8 @@
1010 1010   }
1011 1011   });
1012 1012  }
1013 -// ページ読み込み時の初期化
1017 +// ページ読み込み時にデフォルトで現在年度を表示
1014 1014  document.addEventListener('DOMContentLoaded', function() {
1015 - // ページタイトルを学校名に置換(デフォルトでは学校コードが表示されるため)
1016 - var titleEl = document.querySelector('#document-title h1');
1017 - var schoolNameVal = "$!escapetool.javascript($!schoolName)";
1018 - if (titleEl && schoolNameVal) { titleEl.textContent = schoolNameVal; }
1019 - // デフォルトで現在の年度を表示
1020 1020   var defaultTab = document.querySelector('.activity-fy-tab.active');
1021 1021   if (defaultTab) { defaultTab.click(); }
1022 1022   // 保存成功時のトースト通知