PageSourceSearch

https://www.villafarese.com/themes/parallax/js/contact-form.js

js villafarese.com collected 2026-10-08 17:11:08 UTC 2,088 bytes, 56 lines download raw bytes

1/*
2* 2007-2015 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-2015 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//global variables
26if (typeof $.uniform.defaults !== 'undefined')
27{
28	if (typeof contact_fileDefaultHtml !== 'undefined')
29		$.uniform.defaults.fileDefaultHtml = contact_fileDefaultHtml;
30	if (typeof contact_fileButtonHtml !== 'undefined')
31		$.uniform.defaults.fileButtonHtml = contact_fileButtonHtml;
32}
33
34$(document).ready(function(){
35	$(document).on('change', 'select[name=id_contact]', function(){
36		$('.desc_contact').hide();
37		$('#desc_contact' + parseInt($(this).val())).show();
38	});
39
40	$(document).on('change', 'select[name=id_order]', function (){
41		showProductSelect($(this).attr('value'));
42	});
43
44	showProductSelect($('select[name=id_order]').attr('value'));
45});
46
47function showProductSelect(id_order)
48{
49	$('.product_select').hide().prop('disabled', 'disabled').parent('.selector').hide();
50	$('.product_select').parents('.form-group').find('label').hide();
51	if ($('#' + id_order + '_order_products').length > 0)
52	{
53		$('#' + id_order + '_order_products').removeProp('disabled').show().parent('.selector').removeClass('disabled').show();
54		$('.product_select').parents('.form-group').show().find('label').show();
55	}
56}

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.