/* @license dhtmlxScheduler v.4.4.0 Stardard This software is covered by GPL license. You also can obtain Commercial or Enterprise license to use it in non-GPL project - please contact sales@dhtmlx.com. Usage without proper license is prohibited. (c) Dinamenta, UAB. */ scheduler.form_blocks.combo={render:function(e){e.cached_options||(e.cached_options={});var t="";return t+="
"},set_value:function(e,t,a,r){!function(){function t(){if(e._combo&&e._combo.DOMParent){var t=e._combo;t.unload?t.unload():t.destructor&&t.destructor(),t.DOMParent=t.DOMelem=null}}t();var a=scheduler.attachEvent("onAfterLightbox",function(){t(),scheduler.detachEvent(a)})}(),window.dhx_globalImgPath=r.image_path||"/",e._combo=new dhtmlXCombo(e,r.name,e.offsetWidth-8), r.onchange&&e._combo.attachEvent("onChange",r.onchange),r.options_height&&e._combo.setOptionHeight(r.options_height);var i=e._combo;if(i.enableFilteringMode(r.filtering,r.script_path||null,!!r.cache),r.script_path){var s=a[r.map_to];s?r.cached_options[s]?(i.addOption(s,r.cached_options[s]),i.disable(1),i.selectOption(0),i.disable(0)):dhtmlxAjax.get(r.script_path+"?id="+s+"&uid="+scheduler.uid(),function(e){var t=e.doXPath("//option")[0],a=t.childNodes[0].nodeValue;r.cached_options[s]=a,i.addOption(s,a), i.disable(1),i.selectOption(0),i.disable(0)}):i.setComboValue("")}else{for(var n=[],d=0;d