diff options
author | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2015-04-29 22:07:09 +0300 |
---|---|---|
committer | AlexKlimenkov <shurick.klimenkov@gmail.com> | 2015-04-29 22:07:09 +0300 |
commit | 16f6e54edba096c0cdd789edc9fca85d312c2ebb (patch) | |
tree | c21979537b1e0c2fb9622f8e0cd9059bad8b9729 /codebase/ext/dhtmlxscheduler_multiselect.js | |
parent | f56a0475d90af025e92ec4716ff4e5121992b4fe (diff) | |
download | scheduler-16f6e54edba096c0cdd789edc9fca85d312c2ebb.zip scheduler-16f6e54edba096c0cdd789edc9fca85d312c2ebb.tar.gz scheduler-16f6e54edba096c0cdd789edc9fca85d312c2ebb.tar.bz2 |
[fix] version 4.3.1
Diffstat (limited to 'codebase/ext/dhtmlxscheduler_multiselect.js')
-rw-r--r-- | codebase/ext/dhtmlxscheduler_multiselect.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/codebase/ext/dhtmlxscheduler_multiselect.js b/codebase/ext/dhtmlxscheduler_multiselect.js index 917ea11..0b3c0d2 100644 --- a/codebase/ext/dhtmlxscheduler_multiselect.js +++ b/codebase/ext/dhtmlxscheduler_multiselect.js @@ -1,11 +1,13 @@ /* -dhtmlxScheduler v.4.3.0 Stardard +@license +dhtmlxScheduler v.4.3.1 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.multiselect={render:function(e){for(var t="<div class='dhx_multi_select_"+e.name+"' style='overflow: auto; height: "+e.height+"px; position: relative;' >",s=0;s<e.options.length;s++)t+="<label><input type='checkbox' value='"+e.options[s].key+"'/>"+e.options[s].label+"</label>",convertStringToBoolean(e.vertical)&&(t+="<br/>");return t+="</div>"},set_value:function(e,t,s,r){function a(t){for(var s=e.getElementsByTagName("input"),r=0;r<s.length;r++)s[r].checked=!!t[s[r].value]}for(var n=e.getElementsByTagName("input"),d=0;d<n.length;d++)n[d].checked=!1; -var i={};if(s[r.map_to]){for(var l=(s[r.map_to]+"").split(","),d=0;d<l.length;d++)i[l[d]]=!0;a(i)}else{if(scheduler._new_event||!r.script_url)return;var o=document.createElement("div");o.className="dhx_loading",o.style.cssText="position: absolute; top: 40%; left: 40%;",e.appendChild(o),dhtmlxAjax.get(r.script_url+"?dhx_crosslink_"+r.map_to+"="+s.id+"&uid="+scheduler.uid(),function(t){for(var s=t.doXPath("//data/item"),n={},d=0;d<s.length;d++)n[s[d].getAttribute(r.map_to)]=!0;a(n),e.removeChild(o) -})}},get_value:function(e){for(var t=[],s=e.getElementsByTagName("input"),r=0;r<s.length;r++)s[r].checked&&t.push(s[r].value);return t.join(",")},focus:function(){}}; +scheduler.form_blocks.multiselect={render:function(e){for(var t="<div class='dhx_multi_select_"+e.name+"' style='overflow: auto; height: "+e.height+"px; position: relative;' >",a=0;a<e.options.length;a++)t+="<label><input type='checkbox' value='"+e.options[a].key+"'/>"+e.options[a].label+"</label>",convertStringToBoolean(e.vertical)&&(t+="<br/>");return t+="</div>"},set_value:function(e,t,a,r){function n(t){for(var a=e.getElementsByTagName("input"),r=0;r<a.length;r++)a[r].checked=!!t[a[r].value]} +for(var i=e.getElementsByTagName("input"),d=0;d<i.length;d++)i[d].checked=!1;var l={};if(a[r.map_to]){for(var s=(a[r.map_to]+"").split(","),d=0;d<s.length;d++)l[s[d]]=!0;n(l)}else{if(scheduler._new_event||!r.script_url)return;var o=document.createElement("div");o.className="dhx_loading",o.style.cssText="position: absolute; top: 40%; left: 40%;",e.appendChild(o),dhtmlxAjax.get(r.script_url+"?dhx_crosslink_"+r.map_to+"="+a.id+"&uid="+scheduler.uid(),function(t){for(var a=t.doXPath("//data/item"),i={},d=0;d<a.length;d++)i[a[d].getAttribute(r.map_to)]=!0; + +n(i),e.removeChild(o)})}},get_value:function(e,t,a){for(var r=[],n=e.getElementsByTagName("input"),i=0;i<n.length;i++)n[i].checked&&r.push(n[i].value);return r.join(",")},focus:function(e){}}; //# sourceMappingURL=../sources/ext/dhtmlxscheduler_multiselect.js.map
\ No newline at end of file |