Changes for page 新しい学校ページを作成
Last modified by Super Admin on 2026/03/22 00:39
From version
37.1
edited by Super Admin
on 2026/03/18 20:43
on 2026/03/18 20:43
Change comment:
There is no comment for this version
To version
36.1
edited by Super Admin
on 2026/03/18 20:41
on 2026/03/18 20:41
Change comment:
There is no comment for this version
Summary
Details
- Page properties
-
- Content
-
... ... @@ -223,14 +223,7 @@ 223 223 224 224 // 関連校チェック(他校の関連校として登録されているか確認) 225 225 var affiliatedCheck = fetch('$request.contextPath/bin/view/SeitokaiCode/CheckAffiliated?code=' + encodeURIComponent(school.code) + '&outputSyntax=plain') 226 - .then(function(r) { return r.ok ? r.text() : ''; }) 227 - .then(function(t) { 228 - try { 229 - var jsonEnd = t.indexOf('}'); 230 - if (jsonEnd >= 0) return JSON.parse(t.substring(0, jsonEnd + 1)); 231 - } catch(e) {} 232 - return { found: false }; 233 - }) 226 + .then(function(r) { return r.ok ? r.json() : { found: false }; }) 234 234 .catch(function() { return { found: false }; }); 235 235 236 236 Promise.all([duplicateCheck, affiliatedCheck]).then(function(results) {