Spaces:
Paused
Paused
NextPatent Bot commited on
Commit ยท
4f7da35
1
Parent(s): 7af4260
Fix: Hide integration box on step 6 for institutional profiles
Browse files- static/js/app.js +9 -1
static/js/app.js
CHANGED
|
@@ -461,7 +461,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 461 |
const target = btn.getAttribute('data-target');
|
| 462 |
closeModal(document.getElementById('alerts-modal'));
|
| 463 |
showToast(`'${target}' ๊ธฐ๋ฐ AI ์ ๊ธฐ์ ์ตํฉ ๊ธฐํ ์๋ฎฌ๋ ์ด์
์ ๊ฐ๋ํฉ๋๋ค.`);
|
| 464 |
-
openWizard();
|
| 465 |
});
|
| 466 |
});
|
| 467 |
}
|
|
@@ -885,6 +885,14 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 885 |
const box = document.getElementById('wizard-step6-integration-box');
|
| 886 |
if (!box) return;
|
| 887 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 888 |
const btnRegister = document.getElementById('btn-register-patent-to-institution');
|
| 889 |
const hint = box.querySelector('.registered-list-hint');
|
| 890 |
const selectRow = box.querySelector('.institution-select-row');
|
|
|
|
| 461 |
const target = btn.getAttribute('data-target');
|
| 462 |
closeModal(document.getElementById('alerts-modal'));
|
| 463 |
showToast(`'${target}' ๊ธฐ๋ฐ AI ์ ๊ธฐ์ ์ตํฉ ๊ธฐํ ์๋ฎฌ๋ ์ด์
์ ๊ฐ๋ํฉ๋๋ค.`);
|
| 464 |
+
openWizard(activeProfile === 'institution' ? 'institution' : 'individual');
|
| 465 |
});
|
| 466 |
});
|
| 467 |
}
|
|
|
|
| 885 |
const box = document.getElementById('wizard-step6-integration-box');
|
| 886 |
if (!box) return;
|
| 887 |
|
| 888 |
+
// ๊ธฐ๊ด ํ๋กํ ์ํ์ผ ๋๋ ๊ฐ์ธ ํนํ ๊ท์ ๊ธฐ๋ฅ์ด ๋ถํ์ํ๋ฏ๋ก ์์ ํ ์จ๊น
|
| 889 |
+
if (activeProfile === 'institution') {
|
| 890 |
+
box.classList.add('hidden');
|
| 891 |
+
return;
|
| 892 |
+
} else {
|
| 893 |
+
box.classList.remove('hidden');
|
| 894 |
+
}
|
| 895 |
+
|
| 896 |
const btnRegister = document.getElementById('btn-register-patent-to-institution');
|
| 897 |
const hint = box.querySelector('.registered-list-hint');
|
| 898 |
const selectRow = box.querySelector('.institution-select-row');
|