[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"theme":"solimut","theme_token":"gxK41icdWDJfwIq33O50Z4MEgvNlqLzibRs27LtNWfo"}},"merge":true},{"command":"modal_display","title":"Je m\u0027inscris \u00e0 la newsletter","output":"\u003C!-- css dans blocks\/lucie.scss --\u003E\n\n\u003Cdiv class=\u0022popupNewsletter small-12 medium-12 large-12\u0022\u003E\n\t\u003Ch1 class=\u0022titreForm\u0022\u003EJe m\u0027inscris \u00e0 la newsletter\u003C\/h1\u003E\n\t\u003Cdiv class=\u0022centrer small-12 medium-12 large-10 marginTopMin\u0022\u003E\n\t\t\u003Cdiv class=\u0022row\u0022\u003E\n\t\t\t\u003Cform method=\u0022post\u0022 action=\u0022\/solimag\/subscribe\u0022 id=\u0022newslettersubscribe\u0022 novalidate\u003E\n\t\t\t\t\u003Cdiv class=\u0022column small-12 medium-12 large-12 radio\u0022\u003E\n\t\t\t\t\t\u003Cdiv class=\u0022row\u0022\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022column small-12 medium-6 large-6\u0022\u003E\n\t\t\t\t\t\t\t\u003Cinput id=\u0022newsletter_part\u0022 type=\u0022radio\u0022 name=\u0022cible\u0022 value=\u0022part\u0022 \u003E\n\t\t\t\t\t\t\t\u003Clabel for=\u0022newsletter_part\u0022\u003E\u003Cb\u003EJe suis un particulier\u003C\/b\u003E\u003C\/label\u003E\n\t\t\t\t\t\t\u003C\/div\u003E\n\t\t\t\t\t\t\u003Cdiv class=\u0022column small-12 medium-6 large-6\u0022\u003E\n\t\t\t\t\t\t\t\u003Cinput id=\u0022newsletter_pro\u0022 type=\u0022radio\u0022 name=\u0022cible\u0022 value=\u0022pro\u0022 \u003E\n\t\t\t\t\t\t\t\u003Clabel for=\u0022newsletter_pro\u0022\u003E\u003Cb\u003EJe suis un professionnel\u003C\/b\u003E\u003C\/label\u003E\n\t\t\t\t\t\t\u003C\/div\u003E\n\t\t\t\t\t\u003C\/div\u003E\n\t\t\t\t\u003C\/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022column small-12 medium-12 large-12 form-item\u0022\u003E\n\t\t\t\t\t\u003Cinput type=\u0022email\u0022 class=\u0022email\u0022 required placeholder=\u0022Email\u0022 id=\u0022newsletter_email\u0022\u003E\n\t\t\t\t\u003C\/div\u003E\n\t\t\t\t\u003Cdiv class=\u0022column small-12 medium-12 large-12 form-submit\u0022\u003E\n\t\t\t\t\t\u003Cbutton class=\u0022button button-rounded bouton1b\u0022\u003EJe m\u0027inscris\u003C\/button\u003E\n\t\t\t\t\t\u003Cp class=\u0022message\u0022\u003E\u003C\/p\u003E\n\t\t\t\t\u003C\/div\u003E\n\t\t\t\u003C\/form\u003E\n\t\t\u003C\/div\u003E\n\t\u003C\/div\u003E\n\t\u003Cdiv class=\u0022clear\u0022\u003E\u003C\/div\u003E\n\u003C\/div\u003E\n\n\u003Cscript\u003E\njQuery(\u0027#newslettersubscribe .bouton1b\u0027).click(function(e) {\n\te.preventDefault();\n\te.stopPropagation();\n\n\tjQuery(\u0027#newslettersubscribe .radio\u0027).removeClass(\u0027valid-error\u0027);\n\tjQuery(\u0027#newslettersubscribe input#newsletter_email\u0027).removeClass(\u0027error\u0027);\n\n\tif(jQuery(\u0027#newslettersubscribe input[name=cible]:checked\u0027).length == 0){\n\t\tjQuery(\u0027#newslettersubscribe .radio\u0027).addClass(\u0027valid-error\u0027);\n\t\tconsole.log(\u0027error radio\u0027);\n\t\treturn false;\n\t} else if (jQuery(\u0027#newslettersubscribe input#newsletter_email\u0027).val() == \u0027\u0027) {\n\t\tconsole.log(\u0027error mail\u0027);\n\t\tjQuery(\u0027#newslettersubscribe input#newsletter_email\u0027).addClass(\u0027error\u0027);\n\t\treturn false;\n\t} else {\n\t\tjQuery(\u0027#newslettersubscribe .radio\u0027).removeClass(\u0027valid-error\u0027);\n\t\tjQuery(\u0027#newslettersubscribe input#newsletter_email\u0027).removeClass(\u0027error\u0027);\n\t\tconsole.log(\u0027good\u0027);\n\n\t\tjQuery.ajax({\n method: \u0022GET\u0022,\n url: \u0022\/solimag\/subscribe\u0022,\n data: {\n cible : jQuery(\u0027#newslettersubscribe input[name=cible]:checked\u0027).val(),\n email : jQuery(\u0027#newslettersubscribe input#newsletter_email\u0027).val(),\n }\n\t\t}).done(function( msg ) {\n\t\t\tconsole.log(msg);\n\t\t\tjQuery(\u0027#newslettersubscribe .bouton1b\u0027).hide();\n\t\t\tjQuery(\u0027#newslettersubscribe .message\u0027).html(\u0027Votre inscription a bien \u00e9t\u00e9 prise en compte.\u0027);\n\t\t});\n\t}\n})\n\u003C\/script\u003E"}]