mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 20:03:12 -04:00
Add named variables for clarity
This commit is contained in:
@@ -9,11 +9,13 @@
|
|||||||
$(component)
|
$(component)
|
||||||
.on('click', function() {
|
.on('click', function() {
|
||||||
|
|
||||||
leftRight = $(this).find(':checked').next('label').text().split('/');
|
valuesInLabel = $(this).find(':checked').next('label').text().split('/');
|
||||||
|
|
||||||
if (leftRight.length === 2) {
|
if (valuesInLabel.length === 2) {
|
||||||
$(this).find('.radio-slider-left-value').html(leftRight[0]);
|
leftValue = valuesInLabel[0];
|
||||||
$(this).find('.radio-slider-right-value').html(leftRight[1]);
|
rightValue = valuesInLabel[1];
|
||||||
|
$(this).find('.radio-slider-left-value').html(leftValue);
|
||||||
|
$(this).find('.radio-slider-right-value').html(rightValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user