1var MessageReceiverSweet; 2MessageReceiverSweet = (function(superClass) { 3 extend(MessageReceiverSweet, superClass); 4 // constructor 5 function MessageReceiverSweet() { 6 } 7 8 MessageReceiverSweet.prototype.sweetalert = function (data) { 9 swal({ 10 title: data.data.title, 11 html: data.data.text, 12 type: data.data.type 13 }); 14 15 return true; 16 }; 17 18 MessageReceiverSweet.prototype.sweetAlertAddProduct = function (data) { 19 // generate url to cart prod/dev 20 var url = window.location.href; 21 var cartUrl = '/gos/externalLink/cart'; 22 23 if (url.indexOf('app_dev') !== -1) 24 { 25 cartUrl = '/app_dev.php/gos/externalLink/cart'; 26 } 27 28 swal({ 29 title: 'Dodano produkt do koszyka', 30 text: 'Produkt zostaŠpoprawnie dodany do Twojego koszyka', 31 type: 'success', 32 reverseButtons: true, 33 showCancelButton: true, 34 showConfirmButton: true, 35 confirmButtonText: 'Przejdź do koszyka', 36 cancelButtonText: 'Kontynuuj zakupy' 37 }).then(function () { 38 $(location).attr('href', cartUrl); 39 }).catch(swal.noop); 40 41 return true; 42 }; 43 44 return MessageReceiverSweet; 45 46})(MessageReceiverBase);
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.