uawdijnntqw1x1x1
IP : 216.73.216.87
Hostname : www.vorobey-market.ru
Kernel : Linux www.vorobey-market.ru 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
bitrix
/
vorobey-clubru
/
478ab
/
..
/
bitrix
/
js
/
scale
/
actionsparamstypes.min.js
/
/
(function(e){if(BX.Scale.ActionsParamsTypes)return;BX.Scale.ActionsParamsTypes={};BX.Scale.ActionsParamsTypes.Proto={init:function(e,t){this.id=e;this.domNodeId="action_user_param_"+e;this.domNode=null;this.name=t.NAME;this.defaultValue=t.DEFAULT_VALUE;this.required=t.REQUIRED;this.type=t.TYPE},createDomNode:function(){},getDomNode:function(){return this.domNode},getValue:function(){var e=false;if(this.domNode&&this.domNode.value!==undefined)e=this.domNode.value;return e}};BX.Scale.ActionsParamsTypes.String=function(e,t){this.init(e,t);this.createDomNode=function(){var e=this.type=="PASSWORD"?"password":"text";this.domNode=BX.create("INPUT",{props:{id:this.domNodeId,name:this.domNodeId,type:e}});if(this.defaultValue!==undefined)this.domNode.value=this.defaultValue;if(this.required!==undefined&&this.required=="Y"){var t=this;this.domNode.onkeyup=this.domNode.oninput=this.domNode.onpaste=this.domNode.oncut=this.domNode.onblur=function(e){var i=t.isEmpty();BX.onCustomEvent("BXScaleActionParamKeyUp",[{paramId:t.id,empty:i}])}}};this.isEmpty=function(){return this.domNode.value.length<=0};this.createDomNode()};BX.Scale.ActionsParamsTypes.String.prototype=BX.Scale.ActionsParamsTypes.Proto;BX.Scale.ActionsParamsTypes.Checkbox=function(e,t){this.init(e,t);this.checked=t.CHECKED=="Y"||this.defaultValue=="Y";this.string=t.STRING||"";this.createDomNode=function(){this.domNode=BX.create("INPUT",{props:{id:this.domNodeId,name:this.domNodeId,type:"checkbox",checked:this.checked}})};this.getValue=function(){var e=BX(this.domNodeId),t=false;if(e&&e.checked!==undefined)t=e.checked?this.string:"";return t};this.createDomNode()};BX.Scale.ActionsParamsTypes.Checkbox.prototype=BX.Scale.ActionsParamsTypes.Proto;BX.Scale.ActionsParamsTypes.Dropdown=function(e,t){this.init(e,t);this.values=t.VALUES;this.createDomNode=function(){this.domNode=BX.create("SELECT",{props:{id:this.domNodeId,name:this.domNodeId}});for(var e in this.values){var t=BX.create("OPTION");t.appendChild(document.createTextNode(this.values[e]));t.setAttribute("value",e);if(this.defaultValue){t.defaultSelected=true;t.selected=true}this.domNode.appendChild(t)}};this.getValue=function(){var e=false;if(this.domNode.selectedIndex!=-1)e=this.domNode.options[this.domNode.selectedIndex].value;return e};this.createDomNode()};BX.Scale.ActionsParamsTypes.Dropdown.prototype=BX.Scale.ActionsParamsTypes.Proto;BX.Scale.ActionsParamsTypes.Text=function(e,t){this.init(e,t);this.createDomNode=function(){this.domNode=BX.create("DIV");this.textNode=BX.create("SPAN",{html:this.defaultValue});this.inputNode=BX.create("INPUT",{props:{id:this.domNodeId,name:this.domNodeId,type:"hidden"}});if(this.defaultValue!==undefined)this.inputNode.value=this.defaultValue;this.domNode.appendChild(this.inputNode);this.domNode.appendChild(this.textNode)};this.getValue=function(){var e=false;if(this.inputNode&&this.inputNode.value!==undefined)e=this.inputNode.value;return e};this.createDomNode()};BX.Scale.ActionsParamsTypes.Text.prototype=BX.Scale.ActionsParamsTypes.Proto})(window); //# sourceMappingURL=actionsparamstypes.map.js
/home/bitrix/vorobey-clubru/478ab/../bitrix/js/scale/actionsparamstypes.min.js