PageSourceSearch

https://www.paintandpanel.com.au/cache/farcry-form-8F91E1202DE1FAD32EB03C1598183017.js

js paintandpanel.com.au collected 2026-10-01 03:50:01 UTC 34,736 bytes, 81 lines download raw bytes

1
2if(typeof($fc)=='undefined'){var $fc={};}
3$fc.watchedfields={};$fc.watchingfields={};$fc.watchingtracker={};$fc.watchloading=0;function addWatch(prefix,property,opts){$fc.watchedfields[prefix]=$fc.watchedfields[prefix]||{};$fc.watchingfields[prefix]=$fc.watchingfields[prefix]||{};$fc.watchingtracker[prefix]=$fc.watchingtracker[prefix]||{};$fc.watchingtracker[prefix][property]=$fc.watchingtracker[prefix][property]||{};$j("select[name="+prefix+property+"], input[name="+prefix+property+"][type=text], input[name="+prefix+property+"][type=password]").on("change",{prefix:prefix,property:property},ajaxUpdate);$j("input[name="+prefix+property+"][type=checkbox], input[name="+prefix+property+"][type=radio]").on("click",{prefix:prefix,property:property},ajaxUpdate);var el=$j("input[name="+prefix+property+"][type=hidden]");if(el.length){var lastvalue=el.val();setInterval(function(){var el=$j("input[name="+prefix+property+"][type=hidden]");if(el.val()!==lastvalue){lastvalue=el.val();var ev={data:{prefix:prefix,property:property}};ajaxUpdate.call(el[0],ev);}},100);};if($fc.watchingtracker[prefix][property][opts.property]===undefined){$fc.watchedfields[prefix][property]=$fc.watchedfields[prefix][property]||[];$fc.watchedfields[prefix][property].push(opts);$fc.watchingfields[prefix][opts.property]=$fc.watchingfields[prefix][opts.property]||[];$fc.watchingfields[prefix][opts.property].push(opts);$fc.watchingtracker[prefix][property][opts.property]='';}};function getFormData(){var result={};$j('input,select,textarea').each(function(){var self=$j(this),name=self.attr("name");result[name]=result[name]||[];if((!(self.is("[type=radio]")||self.is("[type=radio]"))||self.is(":checked"))&&self.val()!=="")
4result[name].push(self.val());});for(var k in result)
5result[k]=result[k].join();return result;};function getValueData(base,prefix){var formdata=getFormData();base=base||{};var property="";for(var property in base){if(formdata[prefix+property])
6base[property]=formdata[prefix+property];else
7base[property]="";}
8return base;};function ajaxUpdate(event){var values={};var reenable=[];if($fc.watchloading==0){for(var i=0;i<$fc.watchedfields[event.data.prefix][event.data.property].length;i++){watcher=$fc.watchedfields[event.data.prefix][event.data.property][i];values[watcher.property]="";for(var j=0;j<$fc.watchingfields[event.data.prefix][watcher.property].length;j++)
9values[$fc.watchingfields[event.data.prefix][watcher.property][j].watchedproperty]="";}
10values=getValueData(values,event.data.prefix);for(var i=0;i<$fc.watchedfields[event.data.prefix][event.data.property].length;i++){$fc.watchloading++;(function(watcher){$j("#"+watcher.prefix+watcher.property+"ajaxdiv").html(watcher.ftLoaderHTML).load('/webtop/facade/ftajax.cfm?ajaxmode=1&formtool='+watcher.formtool+'&typename='+watcher.typename+'&fieldname='+watcher.fieldname+'&property='+watcher.property+'&objectid='+watcher.objectid+'&formtheme='+watcher.formtheme,values,function(response){$j("#"+watcher.fieldname+"ajaxdiv").html(response.responseText);if($fc.watchedfields[watcher.prefix]&&$fc.watchedfields[watcher.prefix][watcher.property]&&$fc.watchedfields[watcher.prefix][watcher.property].length){$j("select[name="+watcher.prefix+watcher.property+"], input[name="+watcher.prefix+watcher.property+"][type=text], input[name="+watcher.prefix+watcher.property+"][type=password]").bind("change",{prefix:watcher.prefix,property:watcher.property},ajaxUpdate);$j("input[name="+watcher.prefix+watcher.property+"][type=checkbox], input[name="+watcher.prefix+watcher.property+"][type=radio]").bind("click",{prefix:watcher.prefix,property:watcher.property},ajaxUpdate);reenable.push("select[name="+watcher.prefix+watcher.property+"], input[name="+watcher.prefix+watcher.property+"][type=text], input[name="+watcher.prefix+watcher.property+"][type=password]");reenable.push("input[name="+watcher.prefix+watcher.property+"][type=checkbox], input[name="+watcher.prefix+watcher.property+"][type=radio]");}
11$fc.watchloading--;if($fc.watchloading)$j(reenable.join()).attr("disabled",false);});})($fc.watchedfields[event.data.prefix][event.data.property][i]);}}};function ajaxClear(){var values={};var prefix="";var property="";var thisproperty="";var reenable=$j([]);for(prefix in $fc.watchedfields);for(property in $fc.watchedfields[prefix]);if($fc.watchloading==0){for(var i=0;i<$fc.watchedfields[prefix][property].length;i++){watcher=$fc.watchedfields[prefix][property][i];values[watcher.property]="";for(var j=0;j<$fc.watchingfields[prefix][watcher.property].length;j++)
12values[$fc.watchingfields[prefix][watcher.property][j].watchedproperty]="";}
13for(var thisproperty in values){if($j('#'+prefix+thisproperty).val()){values[thisproperty]=$j('#'+prefix+thisproperty).val();if(values[thisproperty].join)values[thisproperty]=values[thisproperty].join();}}
14for(var i=0;i<$fc.watchedfields[prefix][property].length;i++){$fc.watchloading++;(function(watcher){$j("#"+watcher.prefix+watcher.property+"ajaxdiv").html(watcher.ftLoaderHTML).load('/webtop/facade/ftajax.cfm?ajaxmode=1&formtool='+watcher.formtool+'&typename='+watcher.typename+'&fieldname='+watcher.fieldname+'&property='+watcher.property+'&objectid='+watcher.objectid+'&formtheme='+watcher.formtheme,values,function(response){$j("#"+watcher.fieldname+"aja
14xdiv").html(response.responseText);if($fc.watchedfields[watcher.prefix]&&$fc.watchedfields[watcher.prefix][watcher.property]&&$fc.watchedfields[watcher.prefix][watcher.property].length){$j("select[name="+watcher.prefix+watcher.property+"], input[name="+watcher.prefix+watcher.property+"][type=text], input[name="+watcher.prefix+watcher.property+"]:not([type]), input[name="+watcher.prefix+watcher.property+"][type=password]").bind("change",{prefix:watcher.prefix,property:watcher.property},ajaxUpdate).disable();$j("input[name="+watcher.prefix+watcher.property+"][type=checkbox], input[name="+watcher.prefix+watcher.property+"][type=radio]").bind("click",{prefix:watcher.prefix,property:watcher.property},ajaxUpdate).disable();}
15$fc.watchloading--;});})($fc.watchedfields[prefix][property][i]);}}};function farcryButtonURL(id,url,target){if(target=='undefined'||target=='_self'){location.href=url;return false;}else{win=window.open('',target);win.location=url;win.focus;return false;}}
16function selectObjectID(objectid){$j('.fc-selected-object-id').attr('value',objectid);}
17function selectedObjectID(objectid){$j('.fc-selected-object-id').attr('value',objectid);}
18function validateBtnClick(formName){var btnValidation=new Validation(formName,{onSubmit:false});if(btnValidation.validate()){return true}else{return false};}
19function btnURL(url,target){if(target=='undefined'||target=='_self'){location.href=url;return false;}else{win=window.open('',target);win.location=url;win.focus;return false;}}
20function btnClick(formName,value){$j('.fc-button-clicked').attr('value',value);}
21function btnTurnOnServerSideValidation(){$j('.fc-server-side-validation').attr('value',1);}
22function btnTurnOffServerSideValidation(){$j('.fc-server-side-validation').attr('value',0);}
23function btnSubmit(formName,value){btnClick(formName,value);if(formName!=''){$j('#'+formName).submit();}}
24function farcryForm_ajaxSubmission(formname,action,maskMsg,maskCls,ajaxTimeout,ajaxTarget){var a=action?action:$j('#'+formname).attr('action');if(maskMsg==undefined){var maskMsg='Form Submitting, please wait...'};if(maskCls==undefined){var maskCls='mask-ajax-submission'};if(ajaxTimeout==undefined){var ajaxTimeout=30};if(ajaxTarget==undefined){var ajaxTarget="#"+formname+"formwrap";};if(ajaxTimeout>0){ajaxTimeout=ajaxTimeout*1000;}
25if(maskMsg.length){$j("#"+formname).mask(maskMsg);}
26$j.ajax({type:"POST",url:a,data:new FormData($j("#"+formname)[0]),processData:false,contentType:false,dataType:"html",cache:false,timeout:ajaxTimeout,success:function(msg){if(maskMsg.length){$j(ajaxTarget).unmask();}
27$j(ajaxTarget).html(msg);}});}
28function checkUncheckAll(theElement){var theForm=theElement.form,z=0;for(z=0;z<theForm.length;z++){if(theForm[z].type=='checkbox'&&theForm[z].name!='checkall'){theForm[z].checked=theElement.checked;setRowBackground(theForm[z]);}}}
29function setRowBackground(childCheckbox){$j(childCheckbox).parents("tr").first().toggleClass("selected");}
30function updateSelectedObjectIDs(childCheckbox){var input=$j(childCheckbox).parents("form").find("input[name=SelectedObjectID]"),curvals=input.val().split(",");if(curvals.indexOf(this.value))
31curvals.splice(curvals.indexOf(this.value),1);else
32curvals.push(this.value);input.val(curvals.join(","));}
33$fc.openDialog=function(title,url,width,height,settings){settings=$j.extend({title:title,url:url},settings);return $fc.openBootstrapModal(settings);};$fc.openDialogIFrame=function(title,url,width,height,settings){settings=$j.extend({title:title,url:url},settings);return $fc.openBootstrapModal(settings);};$fc.objectAdminAction=function(title,url,settings){settings=$j.extend({title:title,url:url},settings);return $fc.openBootstrapModal(settings);};$fc.objectAdminTrayAction=function(title,url,settings){settings=$j.extend({title:title,url:url},settings);var fcTrayModalTPL=$j("<div class='fc-tray'><div id='fcModal' class='modal hide fc-modal' style='' tabindex='-1' role='dialog' aria-labelledby='fcModalLabel' aria-hidden='true'><div class='modal-header'><button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button><h3 id='fcModalLabel'>Modal</h3></div><div class='modal-body' style='width: auto;min-height: 0px;max-height:900px;height: 455px;position: relative;border: 0;padding: 0;background: 0;-webkit-overflow-scrolling:touch;overflow: auto;zoom: 1;'><iframe style='width: 100%;height: 99%;border-width: 0px;margin: 0;padding: 0;' frameborder='0'></iframe></div></div></div>");$j("body").append(fcTrayModalTPL);return $fc.openBootstrapModal(settings);};$fc.closeBootstrapModal=function(){parent.$j('#fcModal').modal('hide');}
34$fc.openBootstrapModal=function($settings){$settings=$j.extend({keyboard:false,backdrop:'static',width:$j(window).width()-40,height:$j(window).height()-40,title:'Administration',url:'',onShown:function(){return true;},onHidden:function(){window.location.href=window.location.href.split('#')[0];return true;}},$settings);var modalLeftPos=0;var fcModalTPL=$j("<div id='fcModal' class='modal hide fade fc-modal' style='' tabindex='-1' role='dialog' aria-labelledby='fcModalLabel' aria-hidden='true'><div class='modal-header'><button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button><h3 id='fcModalLabel'>Modal</h3></div><div class='modal-body' style='width: auto;min-height: 0px;max-height:900px;height: 455px;position: relative;border: 0;padding: 0;background: 0;-webkit-overflow-scrolling:touch;overflow: auto;zoom: 1;'><iframe style='width: 100%;height: 99%;border-width: 0px;margin: 0;padding: 0;' frameborder='0'></iframe></div></div>");var $fcModal=$j("#fcModal");
34if($fcModal.length==0){$j("body").append(fcModalTPL);}
35$j('#fcModalLabel',$j('#fcModal')).html($settings.title);$j('#fcModal').css('top','15px');$j('#fcModal').css('margin-left','0px');$j('#fcModal').css('max-height',$settings.height);$j('#fcModal').css('height',$settings.height);$j('.modal-body').css('max-height',$settings.height);$j('#fcModal').css('width',$settings.width);$j('.modal-body').css('max-width',$settings.width);$j('.modal-body',$j('#fcModal')).css('height',$settings.height-36);modalLeftPos=($j(window).width()-$j('#fcModal').width())/2;$j('#fcModal').css('left',modalLeftPos);$j('#fcModal').off("shown").on('shown',function(){if($settings.url.indexOf("?")<0){$settings.url=$settings.url+'?'};$settings.url=$settings.url+'&dialogID=fcModal'
36$j('iframe',$j('#fcModal')).attr('src',$settings.url);$j("html").css('overflow','hidden');$settings.onShown();}).off("hidden").on('hidden',function(){$j("html").css('overflow','auto');$j('iframe',$j('#fcModal')).attr('src','');$settings.onHidden();}).modal({keyboard:$settings.keyboard,backdrop:$settings.backdrop});};$fc.changeBootstrapModalTitle=function(title){parent.$j('#fcModalLabel').html(title);}
37var fcForm={};fcForm.openLibrarySelect=function(typename,objectid,property,id,urlparameters){urlparameters=urlparameters?urlparameters:'';$fc.openBootstrapModal({title:'Library',url:'/index.cfm?type='+typename+'&objectid='+objectid+'&view=webtopPageModal&bodyview=displayLibraryTabs'+'&property='+property+'&fieldname='+id+'&'+urlparameters,onHidden:function(){$j('#'+id).trigger('change');fcForm.refreshProperty(typename,objectid,property,id);return true;}});};fcForm.openLibraryAdd=function(typename,objectid,property,id){var filterTypename=$j('#'+id+'-add-type').val();$fc.openBootstrapModal({title:'Add New',url:'/index.cfm?type='+typename+'&objectid='+objectid+'&view=webtopPageModal&bodyView=displayLibraryAdd'+'&property='+property+'&filterTypename='+filterTypename,onHidden:function(){$j('#'+id).trigger('change');fcForm.refreshProperty(typename,objectid,property,id);return true;}});};fcForm.openLibraryBulkUpload=function(typename,objectid,property,id){var filterTypename=$j('#'+id+'-bulkupload-type').val();$fc.openBootstrapModal({title:'Bulk Upload',url:'/webtop/index.cfm?typename='+filterTypename+'&view=webtopPageModal&bodyView=webtopBodyBulkUpload&parentType='+typename+'&parentObjectID='+objectid+'&parentProperty='+property+'&fieldname='+id,onHidden:function(){$j('#'+id).trigger('change');fcForm.refreshProperty(typename,objectid,property,id);return true;}});};fcForm.openLibraryEdit=function(typename,objectid,property,id,editid){$fc.openBootstrapModal({title:'Edit',url:'/index.cfm?type='+typename+'&objectid='+objectid+'&view=webtopPageModal&bodyView=displayLibraryEdit'+'&property='+property+'&editid='+editid+'&iframe=1',onHidden:function(){$j('#'+id).trigger('change');fcForm.refreshProperty(typename,objectid,property,id);return true;}});};fcForm.deleteLibraryItem=function(typename,objectid,property,formfieldname,itemids){$j.ajax({cache:false,type:"POST",url:'/index.cfm?ajaxmode=1&type='+typename+'&objectid='+objectid+'&view=webtopAjaxUpdateJoin'+'&property='+property,data:{deleteID:itemids},dataType:"html",complete:function(data){$j('#join-item-'+property+'-'+itemids).hide('blind',{},500);$j('#join-item-'+property+'-'+itemids).remove();$j('#'+formfieldname).attr('value','');var aItems=$j('#'+formfieldname+'-library-wrapper').sortable('toArray',{'attribute':'serialize'});if($j.isArray(aItems)){$j('#'+formfieldname).val(aItems.join(","));}else{$j('#'+formfieldname).val('');}
38$j('#'+formfieldname).trigger('change');}});}
39fcForm.deleteAllLibraryItems=function(typename,objectid,property,formfieldname,itemids){$j.ajax({cache:false,type:"POST",url:'/index.cfm?ajaxmode=1&type='+typename+'&objectid='+objectid+'&view=webtopAjaxUpdateJoin'+'&property='+property,data:{deleteID:itemids},dataType:"html",complete:function(data){$j('#'+formfieldname).attr('value','');$j('#'+formfieldname).trigger('change');$j('#join-'+objectid+'-'+property).hide('blind',{},500);$j('#join-'+objectid+'-'+property).remove();}});}
40fcForm.detachLibraryItem=function(typename,objectid,property,formfieldname,itemids){$j('#join-item-'+property+'-'+itemids).hide('blind',{},500);$j('#join-item-'+property+'-'+itemids).remove();$j('#'+formfieldname).attr('value','');var aItems=$j('#'+formfieldname+'-library-wrapper').sortable('toArray',{'attribute':'serialize'});if($j.isArray(aItems)){$j('#'+formfieldname).val(aItems.join(","));}else{$j('#'+formfieldname).val('');}
41$j('#'+formfieldname).trigger('change');}
42fcForm.detachAllLibraryItems=function(typename,objectid,property,formfieldname,itemids){$j('#'+formfieldname).attr('value','');$j('#'+formfieldname).trigger('change');$j('#join-'+objectid+'-'+property).hide('blind',{},500);$j('#join-'+objectid+'-'+property).remove();}
43fcForm.initLibrary=function(typename,objectid,property,urlParams){fcForm.initLibrarySummary(typename,objectid,property,urlParams);$j('tr.selector-wrap').has('input:checked').addClass('selected').end().click(function(event){if(event.target.type!=='checkbox'&&event.target.type!=='radio'){$j('input',this).trigger('click');};});$j("input.checker").click(function(e){if($j(this).prop("checked")){$j(this).parents('tr.selector-wrap').addClass('selected');}
44else{$j(this).parents('tr.selector-wrap').removeClass('selected');}
45if(e.target.type=='radio'){$j('tr.selector-wrap').removeClass('selected');$j(this).parents('tr.selector-wrap').addClass('selected');}});$j("input.checkall").click(function(e){if($j(e.target).prop('checked')){$j("input.checker").prop('checked',true).parents('tr.selector-wrap').addClass('selected');}else{$j("input.checker").prop('checked',false).parents('tr.selector-wrap').removeClass('selected');};});};fcForm.initLibrarySummary=function(typename,objectid,property,urlParams){}
46fcForm.refreshProperty=function(typename,objectid,property,id){var propertydata={propertyValue:$j('#'+id).val()};$j("select[name^="+id+"],input[name^="+id+"]").each(function(){if(this.name!=id)propertydata[this.name.slice(id.length)]=$j(this).val();});var prefix=id.slice(0,id.length-property.length);$j.ajax({type:"POST",cache:false,url:'/index.cfm?ajaxmode=1&type='+typename+'&objectid='+objectid+'&view=displayAjaxRefreshJoinProperty'+'&property='+property+'&prefix='+prefix,success:function(msg){$j("#"+id+'-library-wrapper').html(msg);fcForm.initSortable(typename,objectid,property,id);},data:propertydata,dataType:"html"});}
47fcForm.initSortable=function(typename,objectid,property,id){$j('#'+id+'-library-wrapper').sortable({items:'li.sort',axis:'y',update:function(event,ui){$j('#'+id).val($j('#'+id+'-library-wrapper').sortable('toArray',{'attribute':'serialize'}).join(","));}});}
48var userselection=[];var inputField;fcForm.selections={init:function(aTypename,aProperty,aId){typename=aTypename;property=aProperty;id=aId;inputField=$j('#'+aId,parent.document);if(inputField.val().length){userselection=inputField.val().split(',');}
49fcForm.selections.statusupdate(property);$j("body").on('click',"tr.selector-wrap input[name='selected']",function(e){var el=$j(e.currentTarget);if(el.is(':radio')){userselection=[el.val()];}else if(el.is(':checked')){fcForm.selections.add(el.val());}else{fcForm.selections.remove(el.val());}
50inputField.val(userselection.toString());fcForm.selections.statusupdate(property);});},add:function(objID){if($j.inArray(objID,userselection)==-1){userselection.push(objID);}},remove:function(objID){var arrPos=$j.inArray(objID,userselection);if(arrPos>=0){userselection.splice(arrPos,1);}},statusupdate:function(property){var nbrSelections=userselection.length;var statusText='<div class="alert alert-success">'+nbrSelections+' items selected.</div>';if(nbrSelections==0){statusText='<div class="alert alert-info">No items have been selected.</div>';}
51$j('#librarySummary-'+typename+'-'+property).html(statusText);},reinitpage:function(){$j('tr.selector-wrap').removeClass('selected');$j("tr.selector-wrap input[name='selected']").prop('checked',false);$j.each(userselection,function(){$j("tr.selector-wrap input[value='"+this+"']").prop('checked',true).parents('tr.selector-wrap').addClass('selected');});}};$j(document).on("keypress","form input, form select",function(e){if($j(this).parents('form').find('.defaultAction').length<=0)
52return true;if((e.which&&e.which==13)||(e.keyCode&&e.keyCode==13)){$j(this).parents('form').find('.defaultAction').click();return false;}else{return true;}});$fc.uuidSelect=function(el,ui){var $wrapper=$j(el).parent('.wrapper');var $elValue=$wrapper.find('.value').first();var id=ui.item?ui.item.id:"";var label=ui.item?ui.item.label:"";if(id!=""){el.attr('value',label);$elValue.attr('value',id);}
53$j.ajax({type:"POST",cache:false,url:'/index.cfm?ajaxmode=1&type='+$wrapper.attr('ft:typename')+'&objectid='+$wrapper.attr('ft:objectid')+'&view=ajaxRunMethod',error:function(data){alert('change unsuccessful. Please refresh the page.');},complete:function(){},data:{method:'updateBOM',property:$wrapper.attr('ft:property'),value:$elValue.attr('value')},dataType:"html",timeout:2000});return false;};$j(document).ready(function(){$j(document).on('click','.edit-uuid',function(event){var libraryObjectID=$j(this).parents('.wrapper').find('input.value').attr('value');var $wrapper=$j(this).parent('.wrapper');return $fc.openBootstrapModal({title:'Edit',url:'/index.cfm?view=webtopPageStandard&bodyView=edit&objectid='+libraryObjectID,onShown:function(){}
53,onHidden:function(){$j.ajax({type:"POST",cache:false,url:'/index.cfm?ajaxmode=1&type='+$wrapper.attr('ft:typename')+'&objectid='+$wrapper.attr('ft:objectid')+'&view=displayAjaxRefreshJoinProperty'+'&property='+$wrapper.attr('ft:property'),success:function(msg){$wrapper.html(msg);},data:{},dataType:"html"});}});});$j(document).on('click','.open-uuid-library',function(event){var $wrapper=$j(this).parent('.wrapper');var newDialogDiv=$j("<div id='dialog'><iframe style='width:99%;height:99%;border-width:0px;' frameborder='0'></iframe></div>");$j("body").prepend(newDialogDiv);$j("html").css('overflow','hidden');$j("div.ui-dialog",parent.document.body).addClass('nested');$j(newDialogDiv).dialog({bgiframe:true,modal:true,title:'Edit',draggable:false,resizable:false,width:'90%',height:$j(window).height()-50,close:function(event,ui){$j("html").css('overflow','auto');$j("div.ui-dialog",parent.document.body).removeClass('nested');$j(newDialogDiv).dialog('destroy');$j(newDialogDiv).remove();$j.ajax({type:"POST",cache:false,url:'/index.cfm?ajaxmode=1&type='+$wrapper.attr('ft:typename')+'&objectid='+$wrapper.attr('ft:objectid')+'&view=displayAjaxRefreshJoinProperty'+'&property='+$wrapper.attr('ft:property'),success:function(msg){$wrapper.html(msg);},data:{},dataType:"html"});}});$j(newDialogDiv).dialog('open');$j('iframe',$j(newDialogDiv)).attr('src','/index.cfm?type='+$wrapper.attr('ft:typename')+'&objectid='+$wrapper.attr('ft:objectid')+'&view=displayLibraryTabs'+'&property='+$wrapper.attr('ft:property'));});$j(document).on("click",".fc-btn, .fc-btn-link",function(e){if($j(this).attr('fcdata:CLICK')){if($j(this).attr('fcdata:TEXTONCLICK')){$j(this).find('.ui-button-text').css('width',$j(this).find('.ui-button-text').width()).css('height',$j(this).find('.ui-button-text').height()).html("<img src='/wsimages/ajax-loader.gif' style='width:16px;height:16px;' />");};btnClick($j(this).closest('form').attr('id'),$j(this).attr('fcdata:CLICK'));};if($j(this).attr('fcdata:SELECTEDOBJECTID')){selectedObjectID($j(this).attr('fcdata:SELECTEDOBJECTID'));};if($j(this).attr('fcdata:TURNOFFSERVERSIDEVALIDATION')){btnTurnOffServerSideValidation();};if($j(this).attr('fcdata:TURNONSERVERSIDEVALIDATION')){btnTurnOnServerSideValidation();};if($j(this).attr('fcdata:TURNOFFCLIENTSIDEVALIDATION')){$j(this).closest('form').attr('fc:validate',false);};if($j(this).attr('fcdata:CONFIRMTEXT')){if(!confirm($j(this).attr('fcdata:CONFIRMTEXT'))){return false;}};if($j(this).attr('fcdata:URL')){btnURL($j(this).attr('fcdata:URL'),$j(this).attr('fcdata:TARGET'))};if($j(this).attr('fcdata:TEXTONCLICK')){$j(this).find('.ui-button-text').css('width',$j(this).find('.ui-button-text').width()).css('height',$j(this).find('.ui-button-text').height()).html($j(this).attr('fcdata:TEXTONCLICK'));};if($j(this).attr('fcdata:ONCLICK')){eval("var fn = function(){ "+$j(this).attr('fcdata:ONCLICK')+" }");if(fn.call(this,e)===false)return false;};if($j(this).attr('fcdata:SUBMIT')){if($j(this).attr('fcdata:TEXTONSUBMIT')){$j(this).find('.ui-button-text').css('width',$j(this).find('.ui-button-text').width()).css('height',$j(this).find('.ui-button-text').height()).html($j(this).attr('fcdata:TEXTONSUBMIT'));};btnSubmit($j(this).closest('form').attr('id'),$j(this).attr('fcdata:SUBMIT'));};return false;});});$fc.refreshProperty=function(propertyWrap,focusFieldID){$j(propertyWrap).mask('');var $wrap=$j(propertyWrap);var refreshPropertyURL='/index.cfm?ajaxmode=1&type='+$wrap.attr('ft:type')+'&objectid='+$wrap.attr('ft:objectid')+'&format='+$wrap.attr('ft:format')+'&property='+$wrap.attr('ft:property')+'&prefix='+$wrap.attr('ft:prefix')+'&view=displayAjaxRefreshAutoSaveProperty';if(typeof($wrap.attr('ft:type'))=='undefined'){}else{$j.ajax({url:refreshPropertyURL,cache:false,success:function(html)
54{$wrap.html(html);}});}
55$j(propertyWrap).unmask('');};$fc.reloadWebskinWrap=function($webskinWrap,focusFieldID){focusFieldID=focusFieldID?focusFieldID:'';var $webskinTypename=$webskinWrap.attr('ft:typename');var $webskinObjectID=$webskinWrap.attr('ft:objectid');var $webskinView=$webskinWrap.attr('ft:webskin');$j($webskinWrap).mask('&nbsp;');$j($webskinWrap).load('/index.cfm?ajaxmode=1&type='+$webskinTypename+'&objectid='+$webskinObjectID+'&view='+$webskinView,function(){$j($webskinWrap).unmask('');if(focusFieldID.length){$j('#'+focusFieldID).focus();}});}
56$j(document).on('change','.wrap-save-on-change input:not(.helper),.wrap-save-on-change textarea:not(.helper),.wrap-save-on-change select:not(.helper)',function(){var $propertyWrap=$j(this).closest('.propertyRefreshWrap');var propertyPrefix=$propertyWrap.attr('ft:prefix');var propertyType=$propertyWrap.attr('ft:type');var propertyObjectID=$propertyWrap.attr('ft:objectid');var propertyName=$propertyWrap.attr('ft:property');var propertyWatchingFields=$propertyWrap.attr('ft:watchingFields');var reloadOnAutoSave=$propertyWrap.attr('ft:reloadOnAutoSave');var autoSaveToSessionOnly=$j(this).closest('form').hasClass('autoSaveToSessionOnly');var $webskinWrap=$j(this).closest('.webskin-wrap');var webskinType=$webskinWrap.attr('ft:typename');var webskinObjectID=$webskinWrap.attr('ft:objectid');var webskinView=$webskinWrap.attr('ft:webskin');lData=$propertyWrap.find("input,textarea,select").serialize();lData=lData.replace(new RegExp(propertyPrefix,"gi"),"");
56$j.ajaxq('AutoSave',{type:"POST",cache:false,url:'/index.cfm?ajaxmode=1&type='+propertyType+'&objectid='+propertyObjectID+'&view=ajaxSaveProperty&bSessionOnly='+autoSaveToSessionOnly+'&propertyName='+propertyName,context:$j(this),success:function(data){$j('.webskin-wrap').each(function(index){var $currentWebskinWrap=$j(this);var $webskinWatchFields=$j(this).attr("ft:watchFields");if($webskinWatchFields.length){var valueArray=$webskinWatchFields.split(",");for(var i=0;i<valueArray.length;i++){if(valueArray[i]==(propertyPrefix+propertyName)){$fc.reloadWebskinWrap($currentWebskinWrap);}else if(valueArray[i]==(propertyType+'.'+propertyName)){$fc.reloadWebskinWrap($currentWebskinWrap);}else if(valueArray[i]==(propertyName)){$fc.reloadWebskinWrap($currentWebskinWrap);}}}});var $propertyRefreshWrap=$j(this).closest('.propertyRefreshWrap');if(data['BSUCCESS']==1){var focusFieldID='';if($webskinWrap.length){var focusFieldID=$(':focus').attr('id');$fc.reloadWebskinWrap($webskinWrap,focusFieldID);}else{if(reloadOnAutoSave=='Yes'){location=location;}else{if($propertyRefreshWrap.attr('ft:refreshPropertyOnAutoSave')=='Yes'){$fc.refreshProperty($propertyRefreshWrap);}
57if(propertyWatchingFields.length){var valueArray=propertyWatchingFields.split(",");for(var i=0;i<valueArray.length;i++){if(valueArray[i].indexOf('.')!==-1){var elSelector="span.propertyRefreshWrap[ft\\:watchFieldname='"+valueArray[i]+"']";$j(elSelector).each(function(index){$fc.refreshProperty($j(this));});}else{if($j('#'+propertyPrefix+valueArray[i]).is(":focus")){focusFieldID=$j('#'+propertyPrefix+valueArray[i]).attr('id');}
58$fc.refreshProperty($j('#wrap-'+propertyPrefix+valueArray[i]),focusFieldID);}}}}}}else{$fc.refreshProperty($propertyRefreshWrap);if(data['MESSAGE'].length){alert(data['MESSAGE']);}else{alert('Field ['+propertyName+'] was not saved');}}},error:function(data){},complete:function(){},data:lData,timeout:15000});});(function(a){a.fn.mask=function(c){this.unmask();if(this.css("position")=="static"){this.addClass("masked-relative")}this.addClass("masked");var f=a('<div class="loadmask"></div>');var d=navigator.userAgent.toLowerCase();var h=document.compatMode=="CSS1Compat";var e=d.indexOf("msie")>-1;var g=d.indexOf("msie 7");if(e&&!(g&&h)&&this.css("height")=="auto"){f.height(this.height());f.width(this.width())}this.append(f);if(typeof c=="string"){var b=a('<div class="loadmask-msg" style="display:none;"></div>');b.append("<div>"+c+"</div>");this.append(b);b.css("top",Math.round(this.height()/2-b.height()/2)+"px");b.css("left",Math.round(this.width()/2-b.width()/2)+"px");b.show()}};a.fn.unmask=function(b){this.find(".loadmask-msg,.loadmask").remove();this.removeClass("masked");this.removeClass("masked-relative")}})(jQuery);;(function($){$.extend($.fn,{swapClass:function(c1,c2){var c1Elements=this.filter('.'+c1);this.filter('.'+c2).removeClass(c2).addClass(c1);c1Elements.removeClass(c1).addClass(c2);return this;},replaceClass:function(c1,c2){return this.filter('.'+c1).removeClass(c1).addClass(c2).end();},hoverClass:function(className){className=className||"hover";return this.hover(function(){$(this).addClass(className);},function(){$(this).removeClass(className);});},heightToggle:function(animated,callback){animated?this.animate({height:"toggle"},animated,callback):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();if(callback)
59callback.apply(this,arguments);});},heightHide:function(animated,callback){if(animated){this.animate({height:"hide"},animated,callback);}else{this.hide();if(callback)
60this.each(callback);}},prepareBranches:function(settings){if(!settings.prerendered){this.filter(":last-child:not(ul)").addClass(CLASSES.last);this.filter((settings.collapsed?"":"."+CLASSES.closed)+":not(."+CLASSES.open+")").find(">ul").hide();}
61return this.filter(":has(>ul)");},applyClasses:function(settings,toggler){this.filter(":has(>ul):not(:has(>a))").click(function(event){toggler.apply($(this).next());}).add($("a",this)).hoverClass();if(!settings.prerendered){this.filter(":has(>ul:hidden)").addClass(CLASSES.expandable).replaceClass(CLASSES.last,CLASSES.lastExpandable);this.not(":has(>ul:hidden)").addClass(CLASSES.collapsable).replaceClass(CLASSES.last,CLASSES.lastCollapsable);this.prepend("<div class=\""+CLASSES.hitarea+"\"/>").find("div."+CLASSES.hitarea).each(function(){var classes="";$.each($(this).parent().attr("class").split(" "),function(){classes+=this+"-hitarea ";});
61$(this).addClass(classes);});}
62this.find("div."+CLASSES.hitarea).click(toggler);},treeview:function(settings){settings=$.extend({cookieId:"treeview"},settings);if(settings.add){return this.trigger("add",[settings.add]);}
63if(settings.toggle){var callback=settings.toggle;settings.toggle=function(){return callback.apply($(this).parent()[0],arguments);};}
64function treeController(tree,control){function handler(filter){return function(){toggler.apply($("div."+CLASSES.hitarea,tree).filter(function(){return filter?$(this).parent("."+filter).length:true;}));return false;};}
65$("a:eq(0)",control).click(handler(CLASSES.collapsable));$("a:eq(1)",control).click(handler(CLASSES.expandable));$("a:eq(2)",control).click(handler());}
66function toggler(){$(this).parent().find(">.hitarea").swapClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).swapClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().swapClass(CLASSES.collapsable,CLASSES.expandable).swapClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightToggle(settings.animated,settings.toggle);if(settings.unique){$(this).parent().siblings().find(">.hitarea").replaceClass(CLASSES.collapsableHitarea,CLASSES.expandableHitarea).replaceClass(CLASSES.lastCollapsableHitarea,CLASSES.lastExpandableHitarea).end().replaceClass(CLASSES.collapsable,CLASSES.expandable).replaceClass(CLASSES.lastCollapsable,CLASSES.lastExpandable).find(">ul").heightHide(settings.animated,settings.toggle);}}
67function serialize(){function binary(arg){return arg?1:0;}
68var data=[];branches.each(function(i,e){data[i]=$(e).is(":has(>ul:visible)")?1:0;});$.cookie(settings.cookieId,data.join(""));}
69function deserialize(){var stored=$.cookie(settings.cookieId);if(stored){var data=stored.split("");branches.each(function(i,e){$(e).find(">ul")[parseInt(data[i])?"show":"hide"]();});}}
70this.addClass("treeview");var branches=this.find("li").prepareBranches(settings);switch(settings.persist){case"cookie":var toggleCallback=settings.toggle;settings.toggle=function(){serialize();if(toggleCallback){toggleCallback.apply(this,arguments);}};deserialize();break;case"location":var current=this.find("a").filter(function(){return this.href.toLowerCase()==location.href.toLowerCase();});if(current.length){current.addClass("selected").parents("ul, li").add(current.next()).show();}
71break;}
72branches.applyClasses(settings,toggler);if(settings.control){treeController(this,settings.control);$(settings.control).show();}
73return this.bind("add",function(event,branches){$(branches).prev().removeClass(CLASSES.last).removeClass(CLASSES.lastCollapsable).removeClass(CLASSES.lastExpandable).find(">.hitarea").removeClass(CLASSES.lastCollapsableHitarea).removeClass(CLASSES.lastExpandableHitarea);$(branches).find("li").andSelf().prepareBranches(settings).applyClasses(settings,toggler);});}});var CLASSES=$.fn.treeview.classes={open:"open",closed:"closed",expandable:"expandable",expandableHitarea:"expandable-hitarea",lastExpandableHitarea:"lastExpandable-hitarea",collapsable:"collapsable",collapsableHitarea:"collapsable-hitarea",lastCollapsableHitarea:"lastCollapsable-hitarea",lastCollapsable:"lastCollapsable",lastExpandable:"lastExpandable",last:"last",hitarea:"hitarea"};$.fn.Treeview=$.fn.treeview;})(jQuery);;(function($){function load(settings,root,child,container){function createNode(parent){var current=$("<li/>").attr("id",this.id||"").html("<span>"+this.text+"</span>").appendTo(parent);if(this.classes){current.children("span").addClass(this.classes);}
74if(this.expanded){current.addClass("open");}
75if(this.hasChildren||this.children&&this.children.length){var branch=$("<ul/>").appendTo(current);if(this.hasChildren){current.addClass("hasChildren");createNode.call({classes:"placeholder",text:"&nbsp;",children:[]},branch);}
76if(this.children&&this.children.length){$.each(this.children,createNode,[branch])}}}
77$.ajax($.extend(true,{url:settings.url,dataType:"json",data:{root:root},success:function(response){child.empty();$.each(response,createNode,[child]);$(container).treeview({add:child});}},settings.ajax));}
78var proxied=$.fn.treeview;$.fn.treeview=function(settings){if(!settings.url){return proxied.apply(this,arguments);}
79var container=this;if(!container.children().size())
80load(settings,"source",this,container);var userToggle=settings.toggle;return proxied.call(this,$.extend({},settings,{collapsed:true,toggle:function(){var $this=$(this);if($this.hasClass("hasChildren")){var childList=$this.removeClass("hasChildren").find("ul");load(settings,this.id,childList,container);}
81if(userToggle){userToggle.apply(this,arguments);}}}));};})(jQuery);

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.