assets/js/lib/jquery.ajaxchimp.js
Function ajaxChimp
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.ajaxChimp = function (options) {
$(this).each(function(i, elem) {
var form = $(elem);
var email = form.find('input[type=email]');
var label = form.find('label[for=' + email.attr('id') + ']');
Function successCallback
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function successCallback(resp) {
if (resp.result === 'success') {
msg = 'We have sent you a confirmation email';
label.removeClass('error').addClass('valid');
email.removeClass('error').addClass('valid');