...and remove old code using age_on flag

This commit is contained in:
Oliver Gorwits
2014-02-03 23:35:46 +00:00
parent 04f0125b4f
commit 652bd171d6
3 changed files with 2 additions and 16 deletions

View File

@@ -45,16 +45,4 @@
,delay: 250
,minLength: 3
});
// change color of daterange input when activated
$('#age_on').change(function() {
if ($(this).is(':checked')) {
$('#daterange').parent('.clearfix').addClass('success');
}
else {
$('#daterange').parent('.clearfix').removeClass('success');
}
});
// fire the event to set success class correctly on page load
$('#age_on').change();
});