Permalink
Browse files

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
  • Loading branch information...
1 parent 600d9cf commit 19a8545076f477d15aa5ed7fe52af020f43d28ab @adrexia adrexia committed Mar 27, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 javascript/DateField.js
View
@@ -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));
+}(jQuery));

0 comments on commit 19a8545

Please sign in to comment.