PageSourceSearch

https://www.hiwin.de/_ui/addons/hiwinwishlistaddon/responsive/common/js/wishlistheaderpopover.js

js hiwin.de collected 2026-10-04 20:20:41 UTC 2,373 bytes, 68 lines download raw bytes

1ACC.wishlistheaderpopover = {
2
3    _autoload: [
4    ],
5
6    bindDeleteWishlistEntry: function () {
7        $(".delete-wishlist-entry").on("click", function () {
8            ACC.wishlistheaderlinkcomponent.popoverLocked = true;
9            ACC.wishlistheaderpopover.openDeleteModal(this)
10        })
11    },
12
13    deleteWishlistEntry: function (deleteButton) {
14        $.post($(deleteButton).data("url"))
15            .done(function() {
16                ACC.wishlistheaderpopover.removeEntry(deleteButton)
17                ACC.wishlistheaderpopover.showNoEntriesIfNoElementsLeft()
18                ACC.wishlistheaderlinkcomponent.refreshPopover('show')
19            })
20            .fail(function (jqxhr, textStatus, error) {
21                var err = textStatus + ", " + error;
22                console.log("Request Failed: " + err);
23            })
24            .always(function() {
25                $("#cboxClose").click()
26            })
27    },
28
29    openDeleteModal: function (deleteButton) {
30        ACC.colorbox.open("", {
31            title: $(deleteButton).data("title"),
32            html: $(deleteButton).data("content"),
33            width: "1024px",
34            onComplete: function () {
35                $(this).colorbox.resize()
36                ACC.wishlistheaderpopover.bindDeleteModalContinue(deleteButton)
37                ACC.wishlistheaderpopover.bindDeleteModalCancel()
38            },
39            onClosed: function() {
40                ACC.wishlistheaderlinkcomponent.popoverLocked = false
41            }
42        });
43    },
44
45    bindDeleteModalContinue: function(deleteButton) {
46        $(".btn-wishlist-header-delete-continue").one("click", function() {
47            $(deleteButton).off("click")
48            ACC.wishlistheaderpopover.deleteWishlistEntry(deleteButton)
49        })
50    },
51
52    bindDeleteModalCancel: function() {
53        $(".btn-wishlist-header-delete-cancel").one("click", function() {
54            $("#cboxClose").click()
55        })
56    },
57
58    removeEntry: function (deleteButton) {
59        $(deleteButton).closest(".wishlistentry").remove()
60    },
61
62    showNoEntriesIfNoElementsLeft: function () {
63        var wishlistEntryCount = $(".wishlistentry").length
64        if(wishlistEntryCount < 1) {
65            $(".wishlist-header-popover .no-entries").removeClass("hidden")
66        }
67    }
68}

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.