PageSourceSearch

https://voenchast.ru/local/templates/voenchast/js/fix.js

js voenchast.ru collected 2026-10-09 22:39:37 UTC 1,537 bytes, 44 lines download raw bytes

1//при изменении контента в ленте выставляет корректное число комментраивев
2
3$(function()
4{
5
6    var err_obs = $('.obsugden').html();
7    if(err_obs){
8    var regex = /(?:Здесь пока нет ни одной темы.)/gi;
9    var dd=err_obs.match(regex);
10        if(dd){
11            $('.obsugden .forum-block-container').hide();
12            $('.obsugden .forum-page-navigation').hide();
13        }
14    }
15
16    var err_users = $('.hide_if_empty').html();
17    if(err_users) {
18        var regex = /(?:Группа не найдена..)/gi;
19        var dd = err_users.match(regex);
20        if (dd) $('.hide_if_empty').hide();
21    }
22    var err_users = $('.center_content').html();
23    if(err_users) {
24        var regex = /(?:Группа не найдена..)/gi;
25        var dd = err_users.match(regex);
26        if (dd) $('.center_content .errortext').hide();
27    }
28    $('body #log_internal_container').on('DOMSubtreeModified', function () {
29        var id = $('#postId').val();
30        if (id) {
31            BX.ajax({
32                dataType: 'json',
33                method: 'POST',
34                url: '/ajax/get_post_comments.php',
35                data: {
36                    id: id
37                },
38                onsuccess: function (data) {
39                    if (data.count > 0&&data.count!=$('#C_C_PID_' + id).html()) $('#C_C_PID_' + id).html(data.count);
40                }
41            })
42        }
43    });
44});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.