Answer the question
In order to leave comments, you need to log in
Bitrix. Modal login form not loading?
Modal windows are implemented on the site using the jqModal plugin, below is the code section that initializes the login form:
$('.'+name+'_frame').jqm({
trigger: open_trigger,
onLoad: function( hash ){
onLoadjqm( name , hash , requestData, selector); },
ajax: arMShopOptions["SITE_DIR"]+'ajax/auth.php'
});
$(document).ready(function(){
jqmEd('enter', 'auth', '.avtorization-call.enter');
});
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
<?
global $USER;
if($_GET["auth_service_error"]){
LocalRedirect(SITE_DIR.'auth/');
}
if(!$USER->IsAuthorized()){?>
<div id="wrap_ajax_auth">
<a href="#" class="close jqmClose"><i></i></a>
<div class="popup-intro">
<div class="pop-up-title">Вход в личный кабинет</div>
</div>
<?
$APPLICATION->IncludeComponent(
"bitrix:system.auth.form",
"mshop",
Array(
"REGISTER_URL" => SITE_DIR."auth/registration/",
"PROFILE_URL" => SITE_DIR."personal/",
"FORGOT_PASSWORD_URL" => SITE_DIR."auth/forgot-password/",
"AUTH_URL" => SITE_DIR."ajax/show_auth_popup.php",
"SHOW_ERRORS" => "Y",
"POPUP_AUTH" => "Y",
"AJAX_MODE" => "Y"
)
);?>
</div>
<?}
elseif(strlen($_REQUEST["backurl"])){
LocalRedirect($_REQUEST["backurl"]);
}
else{
if(strpos($_SERVER['HTTP_REFERER'], '/auth/') === false && strpos($_SERVER['HTTP_REFERER'], '/ajax/auth.php') === false){
$APPLICATION->ShowHead();
?>
<script>
jsAjaxUtil.ShowLocalWaitWindow( 'id', 'wrap_ajax_auth', true );
BX.reload(false)
</script>
<?
}
else{
LocalRedirect(SITE_DIR.'personal/');
}
}
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");?>
then emptiness is loaded, i.e. there is nothing. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question