BUG: update deprecated 'live' jquery to 'on'

'live' has been deprecated since jquery v 1.7.0, and has been removed
in the latest 2 versions of jquery
This commit is contained in:
Naomi Guyer 2013-03-27 15:09:49 +13:00
parent 600d9cff53
commit 19a8545076

View File

@ -26,11 +26,11 @@
} }
}); });
$('.field.date input.text').live('click', function() { $(document).on("click", "field.date input.text,.fieldholder-small input.text.date", function() {
$(this).ssDatepicker(); $(this).ssDatepicker();
if($(this).data('datepicker')) { if($(this).data('datepicker')) {
$(this).datepicker('show'); $(this).datepicker('show');
} }
}); });
}(jQuery)); }(jQuery));