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

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

Summary

Details

Icon Page properties
Content
... ... @@ -19,10 +19,6 @@
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
26 26  #set($prefecture = $doc.getValue('prefecture'))
27 27  #set($city = $doc.getValue('city'))
28 28  #set($classCount = $doc.getValue('classCount'))
... ... @@ -1014,8 +1014,13 @@
1014 1014   }
1015 1015   });
1016 1016  }
1017 -// ページ読み込み時にデフォルトで現在年度を表示
1013 +// ページ読み込み時の初期化
1018 1018  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 + // デフォルトで現在の年度を表示
1019 1019   var defaultTab = document.querySelector('.activity-fy-tab.active');
1020 1020   if (defaultTab) { defaultTab.click(); }
1021 1021   // 保存成功時のトースト通知