PageSourceSearch

https://vgem.kleinheubach.de/_/scripts/libs/formtools.js

js kleinheubach.de collected 2026-10-03 17:56:50 UTC 3,633 bytes, 1 lines download raw bytes

1var convertSelect,convertSelectBox,convertDateBox,convertDateBoxes,checkMonthViewDate,createDatePicker,watchDateField,set_var,get_var;void 0===convertSelect&&(convertSelect=function(e){return convertSelectBox({el:e})},convertSelectBox=function(f){if("undefined"!=typeof Ext){let e=f.el,t=f.width||204,a=f.forceSelection||!0,n=f.typeAhead||!1,o=f.displayField||"text",i=f.triggerAction||"all",r=f.valueField||"value",l=f.onSelect||function(e){(!e.el.dom.form.name||""===e.el.dom.form.name||!recon.forms[e.el.dom.form.name]||recon.forms[e.el.dom.form.name]&&recon.forms[e.el.dom.form.name].fireEvent("submit"))&&e.el.dom.form.submit()},c=f.onFocus||Ext.emptyFn,d=f.onBlur||Ext.emptyFn,m=f.onShow||Ext.emptyFn,s=Ext.get(e),u=null;return s&&(Ext.form.ComboBox?((u=new Ext.form.ComboBox({typeAhead:n,triggerAction:i,transform:s,width:t,forceSelection:a,displayField:o,valueField:r})).on("show",m),u.show(),u.on("select",l),u.on("focus",c),u.on("blur",d)):Ext.form.Select&&(u=new Ext.form.Select({contentEl:e,width:t,displayField:o,valueField:r}))),u}},convertDateBox=function(e,t,a,n,o){return convertDateBoxes({id:e,format:n,width:o,date:t,name:a})},convertDateBoxes=function(e){var t,a,n,o;if("undefined"!=typeof Ext)return n=e.id,t=e.format||"d.m.Y",a=e.name||"",n=document.getElementById(n),(o=document.createElement("rg-datetimepicker")).dataset.value=e.date||(new Date).toLocaleDateString(),o.dataset.name=a,t.match(/[His]*/g)?o.dataset.type="datetime-local":o.dataset.type="date",!!n&&(n.replaceWith(o),recon.fireEvent("beforeRenderDatepicker",[o,e,n]),recon.fireEvent("datePickerFinish",[n,o]),o.el={setWidth:function(){},dom:o.$element},o.on=function(){},o)},checkMonthViewDate=function(e,t,a){t.format("mY")!==a.format("mY")&&this.el.up("form").dom.submit()},(watchDateField=function(o,i,r,l){if(o&&i&&o.getValue){let e=o,t=i,a=e.getValue(),n=t.getValue();isDate(a)||(a=new Date),isDate(n)||(n=new Date),t.minValue=a,r?t.setValue(a.add(Date.MILLI,watchDateField.dateDiff)):watchDateField.dateDiff=n.getElapsed(a),e.hasListener("valid")||e.on("val
1id",function(){watchDateField(e,t,!0),!isEmpty(this.getValue())&&this.isValid()&&(this.el.removeClass("invalid"),!1!==l)&&this.getValue().getTime()!==this.startValue.getTime()&&e.el.dom.form.submit()}),t.hasListener("valid")||(t.on("valid",function(e){e=e.getValue();isDate(e)&&(watchDateField.dateDiff=e.getElapsed(a))}),t.on("invalid",function(e){e.setValue(a)}))}}).dateDiff=!(createDatePicker=function(e,t,a){var o=t,t=Ext.get(e);t&&(e=new Ext.ux.DatePicker({sync:a}),o&&e.setValue(o.getValue()),e.render(t),e.on("select",function(e,t){var a,n;o?o.setValue(t):(a=Ext.get("evstart"),n=Ext.get("evend"),a&&n&&(a.dom.value=t.format("d.m.Y"),n.dom.value=t.format("d.m.Y")),this.el.up("form").dom.submit())}),recon.fireEvent("datePickerFinish",[t,e]))}),set_var=function(a,n,e){var o=!1;return(e?Ext.select("form[id="+e+"] input"):Ext.select("input")).each(function(e){var t,e=e.dom;e.name&&e.name===a&&(t=e.disabled,e.disabled=!1,e.value=n,e.disabled=t,o=e.form)}),(e?Ext.select("#"+e+" select"):Ext.select("select")).each(function(e){var t,e=e.dom;e.name&&e.name===a&&(t=e.disabled,e.disabled=!1,e.value=n,e.disabled=t,o=e.form)}),o},get_var=function(t,e){var a=!1;return(e?Ext.select("form[id="+e+"] input"):Ext.select("input")).each(function(e){if(a)return a;e=e.dom;e.name&&e.name===t&&(a=e.value)}),(e?Ext.select("#"+e+" select"):Ext.select("select")).each(function(e){if(a)return a;e=e.dom;e.name&&e.name===t&&(a=e.value)}),a},"undefined"!=typeof Ext)&&LazyLoad.js(basepath+"_/scripts/"+("undefined"!=typeof debugscripts?"extensions":"extensionsmin")+"/Ext.ux.DatePicker.js");

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.