function InputfieldPageTitle($nameField){var $titleField=$(".InputfieldPageTitle:not(.InputfieldPageTitleCustom) input[type=text]");$(".InputfieldPageName .LanguageSupport input[type=text]").each(function(){if($(this).val().length>0)$(this).addClass("InputfieldPageNameNoUpdate")});if($("#ProcessPageAdd").length>0){var titleKeyup=function(){var val=$(this).val();var id=$(this).attr("id").replace(/Inputfield_title_*/,"Inputfield__pw_page_name");$nameField=$("#"+id);if($nameField.hasClass("InputfieldPageNameNoUpdate"))return;if($nameField.length)$nameField.val(val).trigger("blur")};$titleField.bind("keyup change",titleKeyup);$(".InputfieldPageName input").change(function(){if($(this).val()!=$(this).attr("data-prev"))$(this).addClass("InputfieldPageNameNoUpdate")}).each(function(){$(this).attr("data-prev",$(this).val())})}}function InputfieldPageTitleCustom($titleField){var $nameInput=jQuery('input[name="'+$titleField.attr("data-name-field")+'"]');if(!$nameInput.length||$nameInput.val().length)return;var delimiter=$titleField.attr("data-name-delimiter");var $titleInput=$titleField.find("input:eq(0)");var replacements=ProcessWire.config.InputfieldPageTitle.replacements;function titleToName(title,strict){var name="";var lastc="";var r="";var c="";if(typeof strict==="undefined")strict=false;for(var n=0;n