1function VyplnFormAction(skript) 2{ 3 var FormElement = document.getElementById("PosliEmailForm"); 4 5 var NahodneCislo = Math.round((Math.random() * 20000)) * 8513; 6 7 if (FormElement != undefined){ 8 FormElement.action = baseUrl + 'tools/'+skript+'?AuthKey=' + NahodneCislo; 9 } 10 11} 12 13 //----------------------------------------------------------------------------------- 14 15function initializeInputItem( defaultText, elementId ) { 16 var value = document.getElementById(elementId).value; 17 if (value == defaultText) 18 document.getElementById(elementId).value = ""; 19 else if (value == "") 20 document.getElementById(elementId).value = defaultText; 21 return false; 22} 23 24//----------------------------------------------------------------------------------- 25 26function otevriPanel( divId ) 27{ 28 div = document.getElementById(divId); 29 30 if (div.style.display=='block') { 31 $('#'+divId).hide('slow'); 32 } else { 33 $('#'+divId).show('fast'); 34 } 35} 36 37//----------------------------------------------------------------------------------- 38 39function vyplnFormControl(id) { 40 var FormElement = document.getElementById(id); 41 42 var NahodneCislo = Math.round((Math.random() * 20000)) * 8513; 43 44 if (FormElement != undefined){ 45 FormElement.value = NahodneCislo; 46 } 47} 48 49/** 50 * Znepristpneni formulare a zobrazeni loaderu 51 * Moc si nerozumi validator a $("form").submit(function...) 52 * Ukazka zakomponovani do validatoru 53$("#formular").validate({ 54 errorElement: "em", 55 errorPlacement: function(error, element) { 56 error.appendTo( element.parent("div") ); 57 }, 58 rules: { 59 ... 60 }, 61 messages: { 62 ... 63 }, 64 submitHandler: function(form) { 65 disable_form(form); 66 form.submit(); 67 } 68 }); 69 * @author Lukas Pohl 70 */ 71function disable_form($form) { 72 $(":submit", $form).parent().append("<img class='ajax-loader' src='"+BASE__URL+"img/ajax-loader.gif' alt='loading' />"); 73 $(":submit", $form).attr('disabled', 'disabled'); 74 $("input", $form).attr('readonly', 'true'); 75 $("textarea", $form).attr('readonly', 'true'); 76} 77 78//function enable_form() { 79// $(prvekForm + ' img.ajax-loader').remove(); 80// $(prvekForm + " :submit").attr('disabled', ''); 81// $(prvekForm + " input").attr('readonly', ''); 82// $(prvekForm + " textarea").attr('readonly', ''); 83//} 84 85function odkaz() { 86 87} 88 89function nastavFormNews() { 90 vyplnFormControl('controlIdNews'); 91 92 $('#formNewsletter').attr('action', BASE__URL + 'tools/newsletter.php'); 93} 94 95function zobrazSkryjKatalog( id ) 96{ 97 div = document.getElementById('tabulka_'+id); 98 99 if (div.style.display != 'none') { 100 $('#tabulka_'+id).hide(); 101 $('#odkaz_'+id).removeClass('open-folder'); 102 } else { 103 $('#tabulka_'+id).show(); 104 $('#odkaz_'+id).addClass('open-folder'); 105 } 106} 107 108$(document).ready(function () { 109 110 $('.dropdown-toggle').bind('click', function(event) { 111 event.preventDefault(); 112 113 var element = $(this).closest('.dropdown'); 114 115 if (element.hasClass('open')) { 116 element.removeClass('open'); 117 } else { 118 element.addClass('open') 119 } 120 121 }); 122 123});
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.