From 19a8545076f477d15aa5ed7fe52af020f43d28ab Mon Sep 17 00:00:00 2001 From: Naomi Guyer Date: Wed, 27 Mar 2013 15:09:49 +1300 Subject: [PATCH] BUG: update deprecated 'live' jquery to 'on' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'live' has been deprecated since jquery v 1.7.0, and has been removed in the latest 2 versionsĀ of jquery --- javascript/DateField.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/javascript/DateField.js b/javascript/DateField.js index f3eb48341..13d901d54 100644 --- a/javascript/DateField.js +++ b/javascript/DateField.js @@ -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(); if($(this).data('datepicker')) { $(this).datepicker('show'); } }); -}(jQuery)); \ No newline at end of file +}(jQuery));