1$(function() { 2 $('#subscribe').on('click', 'button', function() { 3 4 $('.text-danger, .tooltip').remove(); 5 6 var form = $(this).closest('#subscribe'), data = form.find('input').serialize(), btn = form.find('button'); 7 8 $.ajax({ 9 url:$('base').attr('href')+'index.php?route=extension/module/uni_subscribe/add', 10 type:'post', 11 data:data, 12 dataType:'json', 13 success: function(json) { 14 if ((!json['alert'] && json['error']) || (json['alert'] && $('.subscribe__input-password').hasClass('show-pass'))) { 15 uniFlyAlert('danger', json['error']); 16 } 17 18 if (json['alert']) { 19 $('.subscribe__input-email, .subscribe__input-password').addClass('show-pass').attr('disabled', false); 20 } else { 21 $('.subscribe__input-email, .subscribe__input-password').removeClass('show-pass'); 22 $('.subscribe__input-password').attr('disabled', true); 23 } 24 25 if (json['success']) { 26 uniModalWindow('modal-subscribe-success', '', json['success_title'], json['success']); 27 } 28 } 29 }); 30 }); 31});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.