1/* 2 Avetti Commerce 3 4 NOTICE OF LICENSE 5 6 This source file is subject to the Avetti Enterprise License (AEL 1.20) 7 that is bundled with this package in the file AELICENSE.txt. 8 9 Copyright(c)2013 Avetti.com Corporation. (http://www.avetticommerce.com) 10 License: Avetti Enterprise License (AEL 1.20) 11*/ 12jQuery( "#quicklook" ).dialog({ 13 autoOpen: false 14}); 15jQuery( "#quicklook" ).dialog('close'); 16jQuery( "#quicklook_tabs" ).tabs(); 17 18//Only numeric values validation 19function validateKeyPress(e){ 20 var charCode; 21 if(!e) { 22 e = window.event; 23 } 24 if(e.metaKey || e.ctrlKey || e.altKey) { 25 return true; 26 } 27 charCode = (e.charCode) ? e.charCode : 28 ((e.keyCode) ? e.keyCode : ((e.which) ? e.which : 0)); 29 30 if((charCode >= 48 && charCode <= 57) || charCode < 32 || charCode > 126 || (charCode >= 37 && charCode <= 40 && !e.shiftKey)) { 31 return true; 32 } 33 return false; 34} 35 36//instock validation 37function checkInstock(qty,instock){ 38 var qty_n= parseInt(jQuery("#"+qty).val()); 39 var instock_n = parseInt(jQuery("#"+instock).text()); 40 if(qty_n>instock_n){ 41 return false; 42 } 43 return true; 44}
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.