1/* 2* 2007-2016 PrestaShop 3* 4* NOTICE OF LICENSE 5* 6* This source file is subject to the Academic Free License (AFL 3.0) 7* that is bundled with this package in the file LICENSE.txt. 8* It is also available through the world-wide-web at this URL: 9* http://opensource.org/licenses/afl-3.0.php 10* If you did not receive a copy of the license and are unable to 11* obtain it through the world-wide-web, please send an email 12* to [email protected] so we can send you a copy immediately. 13* 14* DISCLAIMER 15* 16* Do not edit or add to this file if you wish to upgrade PrestaShop to newer 17* versions in the future. If you wish to customize PrestaShop for your 18* needs please refer to http://www.prestashop.com for more information. 19* 20* @author PrestaShop SA <[email protected]> 21* @copyright 2007-2016 PrestaShop SA 22* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) 23* International Registered Trademark & Property of PrestaShop SA 24*/ 25$(document).ready(function(){ 26 $(document).on('submit', '#create-account_form', function(e){ 27 e.preventDefault(); 28 submitFunction(); 29 }); 30 $('.is_customer_param').hide(); 31}); 32 33function submitFunction() 34{ 35 $('#create_account_error').html('').hide(); 36 $.ajax({ 37 type: 'POST', 38 url: baseUri + '?rand=' + new Date().getTime(), 39 async: true, 40 cache: false, 41 dataType : "json", 42 headers: { "cache-control": "no-cache" }, 43 data: 44 {
45 controller: 'authentication', 46 SubmitCreate: 1, 47 ajax: true, 48 email_create: $('#email_create').val(), 49 back: $('input[name=back]').val(), 50 token: token 51 }, 52 success: function(jsonData) 53 { 54 if (jsonData.hasError) 55 { 56 var errors = ''; 57 for(error in jsonData.errors) 58 //IE6 bug fix 59 if(error != 'indexOf') 60 errors += '<li>' + jsonData.errors[error] + '</li>'; 61 $('#create_account_error').html('<ol>' + errors + '</ol>').show(); 62 } 63 else 64 { 65 // adding a div to display a transition 66 $('#center_column').html('<div id="noSlide">' + $('#center_column').html() + '</div>'); 67 $('#noSlide').fadeOut('slow', function() 68 { 69 $('#noSlide').html(jsonData.page); 70 $(this).fadeIn('slow', function() 71 { 72 if (typeof bindUniform !=='undefined') 73 bindUniform(); 74 if (typeof bindStateInputAndUpdate !=='undefined') 75 bindStateInputAndUpdate(); 76 document.location = '#account-creation'; 77 }); 78 }); 79 } 80 }, 81 error: function(XMLHttpRequest, textStatus, errorThrown) 82 { 83 error = "TECHNICAL ERROR: unable to load form.\n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus; 84 if (!!$.prototype.fancybox) 85 { 86 $.fancybox.open([ 87 { 88 type: 'inline', 89 autoScale: true, 90 minHeight: 30, 91 content: "<p class='fancybox-error'>" + error + '</p>' 92 }], 93 { 94 padding: 0 95 }); 96 } 97 else 98 alert(error); 99 } 100 }); 101}
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.