This commit is contained in:
SBD
2023-11-29 16:26:00 +03:00
parent 8e3b798bce
commit ac60b08f2d
4 changed files with 16 additions and 12 deletions

View File

@@ -3,16 +3,16 @@ standart_page_iterator = 1
separator_iterator = 1
iterator_f_check = 1
function load_routes (el,news=null) {
function load_routes (el,news=null,incrase) {
let local_page_iterator = standart_page_iterator
if (!news){
local_page_iterator = page_iterator
}
let number_last_route = el.id
let incrase = 2
if (!news){
incrase = 10
}
// let incrase = 2
// if (!news){
// incrase = 10
// }
let data_d = {
'from_el':parseInt(number_last_route),
'to_el':parseInt(number_last_route) + incrase
@@ -58,6 +58,10 @@ function load_routes (el,news=null) {
//
//
if (data.next_page_els_count){
document.querySelector(".col_vo_els_f_load").innerHTML = data.next_page_els_count
}
let place_ins_parent = el.closest(".block_w_paging")
let place_ins = place_ins_parent.querySelector(`.page_paging_elements_${local_page_iterator}`)
//