-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RT-15358 More information in Renew modal when the renewperiod is set …
…on more than 1 year
- Loading branch information
Showing
5 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
modules/registrars/realtimeregister/src/Assets/Js/renew.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const renewButton = document.querySelector('input[type="button"][data-toggle="modal"][data-target="#modalRenew"]'); | ||
|
||
if (renewButton) { | ||
renewButton.addEventListener('click', () => { | ||
if (document.getElementsByName('regperiod')[1].value !== '1') { | ||
$('#modalRenew').on('show.bs.modal', function (e) { | ||
document.getElementById('modalRenewBody').innerHTML = 'Please pay attention, the registration period is set to <b>' + document.getElementsByName('regperiod')[1].value + ' years</b>, are you sure you want to send the domain renewal request to the registrar?'; | ||
}); | ||
} else { | ||
document.getElementById('modalRenewBody').innerHTML = 'Are you sure you want to send the domain renewal request to the registrar?'; | ||
} | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters