Skip to content

Commit

Permalink
Use 'on' instead of 'live'.
Browse files Browse the repository at this point in the history
.live() is a deprecated function (from 1.7+) and removed
completely from jQuery 1.9+

	modified:   app/assets/javascripts/application.js
  • Loading branch information
jmcaffee committed Apr 13, 2013
1 parent 3dea9b0 commit 43109e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/application.js
Expand Up @@ -19,7 +19,7 @@
$('document').ready(function() {

// use AJAX to submit the "request invitation" form
$('#invitation_button').live('click', function() {
$('#invitation_button').on('click', function() {
var email = $('form #user_email').val();
if($('form #user_opt_in').is(':checked'))
var opt_in = true;
Expand Down Expand Up @@ -67,4 +67,4 @@ function loadSocial() {
} else {
$.getScript('https://apis.google.com/js/plusone.js');
}
}
}

0 comments on commit 43109e1

Please sign in to comment.