%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/bitrix/www/bitrix/components/bitrix/socialnetwork.features/templates/.default/
Upload File :
Create Path :
Current File : /home/bitrix/www/bitrix/components/bitrix/socialnetwork.features/templates/.default/script.min.js

(function(){if(!!BX.BXSF){return}BX.BXSF={iframe:false,errorBlock:null};BX.BXSF.init=function(e){if(typeof e!="undefined"){if(typeof e.iframe!="undefined"){this.iframe=!!e.iframe}if(BX.type.isNotEmptyString(e.errorBlockName)&&BX(e.errorBlockName)){this.errorBlock=BX(e.errorBlockName)}}BX.bind(BX("sonet_group_features_form_button_cancel"),"click",function(e){BX.SidePanel.Instance.close();e.preventDefault()});var t=BX.findChildren(BX("sonet-features-form"),{className:"sn-features-row"},true);if(t&&BX("sonet_group_features_form_button_submit")){BX.bind(BX("sonet_group_features_form_button_submit"),"click",BX.delegate(function(e){BX.BXSF.submitForm();e.preventDefault()},this))}var o=null;t=BX.findChildren(BX("sonet-features-form"),{className:"settings-right-enable-checkbox"},true);for(var r=0;r<t.length;r++){BX.bind(t[r],"click",BX.delegate(function(e){var t=e.currentTarget;o=t.getAttribute("bx-feature");if(BX.type.isNotEmptyString(o)){BX.BXSF.toggleInternalBlock(t.checked,o)}},this))}};BX.BXSF.toggleInternalBlock=function(e,t){var o=BX(t+"_body");if(o){BX.toggle(o)}var r=BX(t+"_block");if(r){BX.toggle(r)}o=BX(t+"_lbl");if(o){o.innerHTML=BX.message("sonetF_"+t+(e?"_on":"_off"))}};BX.BXSF.submitForm=function(){if(!BX("sonet-features-form")){return}BX.SocialnetworkUICommon.hideError(this.errorBlock);BX.SocialnetworkUICommon.showButtonWait(BX("sonet_group_features_form_button_submit"));BX.ajax.submitAjax(document.forms["sonet-features-form"],{url:BX("sonet-features-form").getAttribute("action"),method:"POST",dataType:"json",onsuccess:BX.delegate(function(e){BX.SocialnetworkUICommon.hideButtonWait(BX("sonet_group_features_form_button_submit"));if(typeof e.MESSAGE!="undefined"&&e.MESSAGE=="SUCCESS"&&typeof e.URL!="undefined"){if(this.iframe){BX.SidePanel.Instance.close()}top.location.href=e.URL}else if(typeof e.MESSAGE!="undefined"&&e.MESSAGE=="ERROR"&&typeof e.ERROR_MESSAGE!="undefined"&&e.ERROR_MESSAGE.length>0){BX.SocialnetworkUICommon.showError(e["ERROR_MESSAGE"],this.errorBlock)}},this),onfailure:BX.delegate(function(e){BX.SocialnetworkUICommon.hideButtonWait(BX("sonet_group_features_form_button_submit"));BX.SocialnetworkUICommon.showError(BX.message("SONET_C4_T_ERROR"),this.errorBlock)},this)})}})();

Zerion Mini Shell 1.0