Merge branch 'master' of https://github.com/merelendor/evoleasing-site
This commit is contained in:
commit
1d642e1e66
@ -22,11 +22,9 @@ if($this->StartResultCache(60*60*24, md5(var_export($_POST, true))))
|
||||
$arResult['ALLOW'] = false;
|
||||
$arResult['SEARCH'] = $_REQUEST['search'];
|
||||
|
||||
print "<!-- SCHEDULE -->\n";
|
||||
|
||||
$sort = Array("ID" => "DESC");
|
||||
$sort = Array("SORT" => "ASC");
|
||||
$filter = Array("ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_CALLBACK_SCHEDULE);
|
||||
$options = Array("nPageSize" => 1);
|
||||
$options = [];
|
||||
|
||||
$schedule_res = CIBlockElement::GetList($sort, $filter, false, $options);
|
||||
while ($schedule_element = $schedule_res->GetNextElement())
|
||||
|
||||
@ -771,7 +771,12 @@ print "\n\n".$trace."\n\n";
|
||||
|
||||
/* search reindex start -------------------------------------------------------------*/
|
||||
|
||||
CSearch::ReIndexAll(false);
|
||||
$reindex_handler = false;
|
||||
$reindex_handler = CSearch::ReIndexAll(false, 60, $reindex_handler);
|
||||
while(is_array($reindex_handler))
|
||||
{
|
||||
$reindex_handler = CSearch::ReIndexAll(false, 60, $reindex_handler);
|
||||
}
|
||||
|
||||
/* search reindex end -------------------------------------------------------------*/
|
||||
|
||||
|
||||
@ -20,6 +20,11 @@ function is_email(email)
|
||||
}
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
setTimeout(function(){ init(); }, 50);
|
||||
});
|
||||
|
||||
function init()
|
||||
{
|
||||
$('a[href*="#order"]').each(function() {
|
||||
$(this).on("click", function(e) {
|
||||
@ -33,7 +38,14 @@ $(document).ready(function()
|
||||
// Main menu toggle
|
||||
$(".nav_toggle").on("click", function()
|
||||
{
|
||||
$("#menu_list").toggleClass("open");
|
||||
if($("#menu_list").hasClass("open"))
|
||||
{
|
||||
$("#menu_list").removeClass("open");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#menu_list").addClass("open");
|
||||
}
|
||||
});
|
||||
|
||||
let cookies = getCookieValue('Policy');
|
||||
@ -274,4 +286,4 @@ $(document).ready(function()
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user