Skip to content
Snippets Groups Projects
Commit 5e22c7ee authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #346 - auto select repeating option on type

parent 0ff5f2ad
No related branches found
No related tags found
No related merge requests found
Pipeline #301 passed
...@@ -81,6 +81,14 @@ $( document ).ready(function() { ...@@ -81,6 +81,14 @@ $( document ).ready(function() {
pickerEndDate.set('select', selectedDate); pickerEndDate.set('select', selectedDate);
} }
pickerEndDate.set('min', selectedDate); pickerEndDate.set('min', selectedDate);
pickerEndDate.on({
set: function() {
// select corresponding radio button
var endDate = document.getElementById("repeating-end-date");
endDate.checked = true;
}
})
} }
if($('#transaction-amount').length) if($('#transaction-amount').length)
...@@ -102,6 +110,10 @@ $( document ).ready(function() { ...@@ -102,6 +110,10 @@ $( document ).ready(function() {
{ {
$(transactionRepeatingEndAfterXTimesInputID).on('change keydown paste input', function() { $(transactionRepeatingEndAfterXTimesInputID).on('change keydown paste input', function() {
validateNumber($(this).val(), transactionRepeatingEndAfterXTimesInputID.substr(1), null, numberValidationMessage); validateNumber($(this).val(), transactionRepeatingEndAfterXTimesInputID.substr(1), null, numberValidationMessage);
// select corresponding radio button
var endAfterXTimes = document.getElementById("repeating-end-after-x-times");
endAfterXTimes.checked = true;
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment