PageSourceSearch

https://www.grosseswalsertal.at/cdnstatic/gelbeseite/userinvite.js

js grosseswalsertal.at collected 2026-10-02 05:40:38 UTC 4,671 bytes, 79 lines download raw bytes

1var loadingSearch = false;
2$(document).ready(function() {
3    $(".ms-form-userinvite-button").click(function(e) {
4        e.preventDefault();
5        if (!loadingSearch) {
6            loadingSearch = true;
7            $(".ms-muellinfoservicesearchresult").addClass("ms-muellinfoservicesearchquery");
8            $(".ms-form-userinvite-error").css("display", "none");
9            var emails = $("input.ms-form-userinvite-input").val();
10            $("input.ms-form-userinvite-input").val('');
11            PageMethods.AddBenutzer(emails, $("[id$='hf_gsonr']").val(), $("[id$='hf_gsgnr']").val(), $("[id$='hf_gssprache']").val(), function(result) {
12                    var json = JSON.parse(result);
13                    if (json && json.length > 0 && !json[0].error) {
14                        var table = $(".th_user_bezeichnung").parent().parent().parent();
15                        $(table).find("td.td_keineuser").parent().css("display", "none");
16                        var lastChild = $(table).find("tr:last");
17                        var loeschenTitle = $("[id$='hf_gsloeschen']").val();
18                        var newtrclass = "";
19                        var newTableRow = "";
20                        for (var i = 0; i < json.length; i++) {
21                            if ($(table).find("[id$='" + json[i].onr + "_userdel-ms']").length <= 0) {
22                                if (newtrclass == "") {
23                                    newtrclass = "odd";
24                                    if ($(lastChild).attr("class") == "odd" && $(lastChild).css("display") != "none") {
25                                        newtrclass = "even";
26                                    }
27                                } else {
28                                    newtrclass = newtrclass == "odd" ? "even" : "odd";
29                                }
30                                newTableRow += "<tr class='" + newtrclass + "'>";
31                                newTableRow += "<td class='align_left td_user_bezeichnung'>" + json[i].email + "</td>";
32                                newTableRow += "<td class='td_user_button width5'><button id='" + json[i].onr + "_userdel-ms' type='button' title='" + loeschenTitle + "'><span class='fa fa-trash'></span></button></td>";
33                                newTableRow += "</tr>";
34                            }
35                        }
36                        lastChild.parent().append(newTableRow);
37                        $(table).find("tr:visible:odd").removeAttr('class');
38                        $(table).find("tr:visible:odd").addClass("odd");
39                        $(table).find("tr:visible:even").removeAttr('class');
40                        $(table).find("tr:visible:even").addClass("even");
41                        $(table).css("display", "");
42                    } else {
43                        if (json && json.length > 0 && json[0].error) {
44                            $(".ms-form-userinvite-error").text(json[0].error);
45                            $(".ms-form-userinvite-error").css("display", "block");
46                        } else {
47                            $(".ms-form-userinvite-error").text("");
48                        }
49                    }
50                    loadingSearch = false;
51                    $(".ms-muellinfoservicesearchresult").removeClass("ms-muellinfoservicesearchquery");
52                },
53                function(e) {
54                    loadingSearch = false;
55                    $(".ms-muellinfoservicesearchresult").removeClass("ms-muellinfoservicesearchquery");
56                });
57        }
58    });
59    $(document).on('click', "button[id$='_userdel-ms']", function(e) {
60        e.preventDefault();
61        var idParts = $(this).attr('id').split('_');
62        $(this).parent().parent().remove();
63        var table = $(".th_user_bezeichnung").parent().parent().parent();
64        if ($(table).find("tr").length < 3) {
65            $(table).find("td.td_keineuser").parent().css("display", "");
66        }
67        $(table).find("tr:visible:odd").removeAttr('class');
68        $(table).find("tr:visible:odd").addClass("odd");
69        $(table).find("tr:visible:even").removeAttr('class');
70        $(table).find("tr:visible:even").addClass("even");
71        try {
72            var userOnr = parseInt(idParts[idParts.length - 2]);
73            PageMethods.RemoveBenutzer(userOnr, $("[id$='hf_gsonr']").val(), $("[id$='hf_gsgnr']").val(), $("[id$='hf_gssprache']").val(), function(result) {},
74                function(e) {});
75        } catch (err) {
76            console.log("error: " + err);
77        }
78    });
79});

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.