/* dhtmlxScheduler v.4.2.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,i,s){!function(){function t(){e._combo&&e._combo.DOMParent&&e._combo.destructor()}t();var i=scheduler.attachEvent("onAfterLightbox",function(){t(),scheduler.detachEvent(i)})}(),window.dhx_globalImgPath=s.image_path||"/",e._combo=new dhtmlXCombo(e,s.name,e.offsetWidth-8),s.onchange&&e._combo.attachEvent("onChange",s.onchange),s.options_height&&e._combo.setOptionHeight(s.options_height); var a=e._combo;if(a.enableFilteringMode(s.filtering,s.script_path||null,!!s.cache),s.script_path){var n=i[s.map_to];n?s.cached_options[n]?(a.addOption(n,s.cached_options[n]),a.disable(1),a.selectOption(0),a.disable(0)):dhtmlxAjax.get(s.script_path+"?id="+n+"&uid="+scheduler.uid(),function(e){var t=e.doXPath("//option")[0],i=t.childNodes[0].nodeValue;s.cached_options[n]=i,a.addOption(n,i),a.disable(1),a.selectOption(0),a.disable(0)}):a.setComboValue("")}else{for(var r=[],d=0;d