Коммунальщик
Решаем вместе
В квитанциях ошибки, в подъезде мусор, сотрудники управляющей хамят? Расскажите о проблемах с ЖКХ
Решаем вместе
В квитанциях ошибки, в подъезде мусор, сотрудники управляющей хамят? Расскажите о проблемах с ЖКХ
(function(sx, $, _) { sx.Shop = new sx.classes.shop.App({"backend-add-product":"/shop/cart/add-product","backend-remove-basket":"/shop/cart/remove-basket","backend-update-basket":"/shop/cart/update-basket","backend-clear-cart":"/shop/cart/clear","backend-remove-discount-coupon":"/shop/cart/remove-discount-coupon","backend-add-discount-coupon":"/shop/cart/add-discount-coupon","backend-favorite-add-product":"/shop/favorite/add-product","backend-favorite-remove-product":"/shop/favorite/remove-product","backend-favorite":"/~shop-favorite","cartData":{"cms_site_id":232,"allow_delivery":"N","status_at":"1710832978","currency_code":"RUB","is_allowed_payment":1,"code":"FT9TKuRUKQVt8qGwn_xBUT104VSfIZYm","is_created":0,"shop_order_status_id":"","shop_person_type_id":1,"shopOrderItems":[],"quantity":0,"countShopOrderItems":0,"countShopBaskets":0,"money":{"amount":"","currency":"RUB","convertAndFormat":"0,00 ₽"},"moneyDelivery":{"amount":"","currency":"RUB","convertAndFormat":"0,00 ₽"},"moneyDiscount":{"amount":"","currency":"RUB","convertAndFormat":"0,00 ₽"},"moneyOriginal":{"amount":"0","currency":"RUB","convertAndFormat":"0,00 ₽"},"moneyVat":{"amount":"","currency":"RUB","convertAndFormat":"0,00 ₽"}}}); })(sx, sx.$, sx._); var id = 232; var idCart = 'sx-cart'+id; (function(sx, $, _) { new sx.classes.shop.SmallCart(sx.Shop, idCart, { 'delay': 500 }); })(sx, sx.$, sx._); jQuery(document).pjax("#sx-cart232 a", {"push":true,"replace":false,"timeout":30000,"scrollTo":false,"container":"#sx-cart232"}); jQuery(document).off("submit", "#sx-cart232 form[data-pjax]").on("submit", "#sx-cart232 form[data-pjax]", function (event) {jQuery.pjax.submit(event, {"push":true,"replace":false,"timeout":30000,"scrollTo":false,"container":"#sx-cart232"});}); (function(sx, $, _) { var blockerPanel = new sx.classes.Blocker('#sx-cart232'); $(document).on('pjax:send', function(e) { if ('sx-cart232' == e.target.id) { blockerPanel = new sx.classes.Blocker($(e.target)); blockerPanel.block(); } }); $(document).on('pjax:complete', function(e) { if ('sx-cart232' == e.target.id) { blockerPanel.unblock(); } }); $(document).on('pjax:error', function(e, data) { if ('sx-cart232' == e.target.id) { blockerPanel.unblock(); e.preventDefault(); } }); })(sx, sx.$, sx._); $('ul.menu.flex').flexMenu(); jQuery(document).pjax("#p0 a", {"push":true,"replace":false,"timeout":30000,"scrollTo":false,"container":"#p0"}); jQuery(document).off("submit", "#p0 form[data-pjax]").on("submit", "#p0 form[data-pjax]", function (event) {jQuery.pjax.submit(event, {"push":true,"replace":false,"timeout":30000,"scrollTo":false,"container":"#p0"});}); (function(sx, $, _) { var blockerPanel = new sx.classes.Blocker('#p0'); $(document).on('pjax:send', function(e) { if ('p0' == e.target.id) { blockerPanel = new sx.classes.Blocker($(e.target)); blockerPanel.block(); } }); $(document).on('pjax:complete', function(e) { if ('p0' == e.target.id) { blockerPanel.unblock(); } }); $(document).on('pjax:error', function(e, data) { if ('p0' == e.target.id) { blockerPanel.unblock(); e.preventDefault(); } }); })(sx, sx.$, sx._); jQuery('#w1').alert(); jQuery('#w2').alert(); sx.ActiveForm = new sx.classes.activeForm.AjaxSubmit('skeeks0-active-form'); sx.ActiveForm.on('afterValidate', function(e, data) { var callback = function(jForm, ajax) { var handler = new sx.classes.AjaxHandlerStandartRespose(ajax, { 'blockerSelector' : '#' + jForm.attr('id'), 'enableBlocker' : true, 'allowResponseSuccessMessage' : false, 'allowResponseErrorMessage' : false, }); handler.bind('error', function(e, data) { $('.sx-success-message', jForm).hide(); $('.sx-error-message', jForm).show(); $('.sx-error-message .sx-body', jForm).empty().append(data.message); }); handler.bind('success', function(e, data) { $('.sx-error-message', jForm).hide(); $('.sx-success-message', jForm).show(); $('.sx-success-message .sx-body', jForm).empty().append(data.message); $('input, textarea', jForm).each(function(value, key) { var name = $(this).attr('name'); if (name != '_csrf' && name != 'sx-model-value' && name != 'sx-model') { $(this).val(''); } }); }); }; var ActiveForm = data.activeFormAjaxSubmit; callback(ActiveForm.jForm, ActiveForm.AjaxQuery); }); jQuery('#skeeks0-active-form').yiiActiveForm([{"id":"relatedpropertiesmodel-property447f1a8cfe6b1788bf3a056bba68abb2","name":"property447f1a8cfe6b1788bf3a056bba68abb2","container":".field-relatedpropertiesmodel-property447f1a8cfe6b1788bf3a056bba68abb2","input":"#relatedpropertiesmodel-property447f1a8cfe6b1788bf3a056bba68abb2","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Имя» должно быть строкой.","skipOnEmpty":1});}},{"id":"relatedpropertiesmodel-propertyd0c5d40de85683ff6b2ef22e2fa055de","name":"propertyD0c5d40de85683ff6b2ef22e2fa055de","container":".field-relatedpropertiesmodel-propertyd0c5d40de85683ff6b2ef22e2fa055de","input":"#relatedpropertiesmodel-propertyd0c5d40de85683ff6b2ef22e2fa055de","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Телефон» должно быть строкой.","skipOnEmpty":1});yii.validation.required(value, messages, {"message":"Необходимо заполнить «Телефон»."});}},{"id":"relatedpropertiesmodel-property59390419b065fbd015fb2453adde5aef","name":"property59390419b065fbd015fb2453adde5aef","container":".field-relatedpropertiesmodel-property59390419b065fbd015fb2453adde5aef","input":"#relatedpropertiesmodel-property59390419b065fbd015fb2453adde5aef","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Комментарий» должно быть строкой.","skipOnEmpty":1});}},{"id":"relatedpropertiesmodel-propertyc5c3a72f45cef54ae5004a0c7ffecc1c","name":"propertyC5c3a72f45cef54ae5004a0c7ffecc1c","container":".field-relatedpropertiesmodel-propertyc5c3a72f45cef54ae5004a0c7ffecc1c","input":"#relatedpropertiesmodel-propertyc5c3a72f45cef54ae5004a0c7ffecc1c","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Я согласен с политикой конфиденциальности сайта».","requiredValue":"1"});}}], {"validationUrl":"\/form2\/backend\/validate"}); jQuery('#sx-callback').modal({"show":false}); jQuery('#w3').alert(); jQuery('#w4').alert(); sx.ActiveForm = new sx.classes.activeForm.AjaxSubmit('skeeks1-active-form'); jQuery('#skeeks1-active-form').yiiActiveForm([{"id":"relatedpropertiesmodel-propertyfabd1e3c600fd71adc10df7cc53f6277","name":"propertyFabd1e3c600fd71adc10df7cc53f6277","container":".field-relatedpropertiesmodel-propertyfabd1e3c600fd71adc10df7cc53f6277","input":"#relatedpropertiesmodel-propertyfabd1e3c600fd71adc10df7cc53f6277","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Имя» должно быть строкой.","skipOnEmpty":1});yii.validation.required(value, messages, {"message":"Необходимо заполнить «Имя»."});}},{"id":"relatedpropertiesmodel-property89acc9800d685d85b5c5f060530df340","name":"property89acc9800d685d85b5c5f060530df340","container":".field-relatedpropertiesmodel-property89acc9800d685d85b5c5f060530df340","input":"#relatedpropertiesmodel-property89acc9800d685d85b5c5f060530df340","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Телефон» должно быть строкой.","skipOnEmpty":1});yii.validation.required(value, messages, {"message":"Необходимо заполнить «Телефон»."});}},{"id":"relatedpropertiesmodel-propertyda6a9edd90bb154036a468490cb27676","name":"propertyDa6a9edd90bb154036a468490cb27676","container":".field-relatedpropertiesmodel-propertyda6a9edd90bb154036a468490cb27676","input":"#relatedpropertiesmodel-propertyda6a9edd90bb154036a468490cb27676","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Email» должно быть строкой.","skipOnEmpty":1});}},{"id":"relatedpropertiesmodel-property17b4d3134f48e36fedf559dfcec405cf","name":"property17b4d3134f48e36fedf559dfcec405cf","container":".field-relatedpropertiesmodel-property17b4d3134f48e36fedf559dfcec405cf","input":"#relatedpropertiesmodel-property17b4d3134f48e36fedf559dfcec405cf","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Сообщение» должно быть строкой.","skipOnEmpty":1});}},{"id":"relatedpropertiesmodel-propertyf83744cba52dcdf236634f3b6545e3fd","name":"propertyF83744cba52dcdf236634f3b6545e3fd","container":".field-relatedpropertiesmodel-propertyf83744cba52dcdf236634f3b6545e3fd","input":"#relatedpropertiesmodel-propertyf83744cba52dcdf236634f3b6545e3fd","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Я согласен с политикой конфиденциальности сайта».","requiredValue":"1"});}},{"id":"relatedpropertiesmodel-productid","name":"productId","container":".field-relatedpropertiesmodel-productid","input":"#relatedpropertiesmodel-productid","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Интересует товар:» должно быть строкой.","skipOnEmpty":1});}}], {"validationUrl":"\/form2\/backend\/validate"}); jQuery('#sx-orderFeedback').modal({"show":false}); jQuery('#w5').alert(); jQuery('#w6').alert(); sx.ActiveForm = new sx.classes.activeForm.AjaxSubmit('skeeks2-active-form'); jQuery('#skeeks2-active-form').yiiActiveForm([{"id":"relatedpropertiesmodel-property58de11dcf85af973694d4e5a2a592ce9","name":"property58de11dcf85af973694d4e5a2a592ce9","container":".field-relatedpropertiesmodel-property58de11dcf85af973694d4e5a2a592ce9","input":"#relatedpropertiesmodel-property58de11dcf85af973694d4e5a2a592ce9","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «ФИО» должно быть строкой.","skipOnEmpty":1});yii.validation.required(value, messages, {"message":"Необходимо заполнить «ФИО»."});}},{"id":"relatedpropertiesmodel-propertye55c075509a8201df67b227cf7f008b3","name":"propertyE55c075509a8201df67b227cf7f008b3","container":".field-relatedpropertiesmodel-propertye55c075509a8201df67b227cf7f008b3","input":"#relatedpropertiesmodel-propertye55c075509a8201df67b227cf7f008b3","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Телефон или email» должно быть строкой.","skipOnEmpty":1});yii.validation.required(value, messages, {"message":"Необходимо заполнить «Телефон или email»."});}},{"id":"relatedpropertiesmodel-property2d1f5f20b85902bf205aa29374e1efa3","name":"property2d1f5f20b85902bf205aa29374e1efa3","container":".field-relatedpropertiesmodel-property2d1f5f20b85902bf205aa29374e1efa3","input":"#relatedpropertiesmodel-property2d1f5f20b85902bf205aa29374e1efa3","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.string(value, messages, {"message":"Значение «Комментарий» должно быть строкой.","skipOnEmpty":1});}},{"id":"relatedpropertiesmodel-propertya2b32ef29d8b8dc96631a282c81f6e2a","name":"propertyA2b32ef29d8b8dc96631a282c81f6e2a","container":".field-relatedpropertiesmodel-propertya2b32ef29d8b8dc96631a282c81f6e2a","input":"#relatedpropertiesmodel-propertya2b32ef29d8b8dc96631a282c81f6e2a","enableAjaxValidation":true,"validateOnChange":false,"validateOnBlur":false,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Необходимо заполнить «Я согласен с политикой конфиденциальности сайта».","requiredValue":"1"});}}], {"validationUrl":"\/form2\/backend\/validate"}); jQuery('#sx-order').modal({"show":false}); jQuery('#sx-city').modal({"show":false}); (function(sx, $, _){ sx.init({"blocker_wait_text":"Подождите..."}); })(sx, sx.$, sx._); (function(sx, $, _) { sx.Config.merge({"notify":{"imageError":"/assets/d377e94b/js/components/notify/images/error.png?v=1582321921","imageFail":"/assets/d377e94b/js/components/notify/images/fail.gif?v=1582321921","imageInfo":"/assets/d377e94b/js/components/notify/images/info.png?v=1582321921","imageSuccess":"/assets/d377e94b/js/components/notify/images/success.png?v=1582321921","imageWarning":"/assets/d377e94b/js/components/notify/images/warning.png?v=1582321921"}}); })(sx, sx.$, sx._); });