PageSourceSearch

https://www.bushongvintagecompany.com/wp-content/plugins/ifso-bulk…/js/ifso-bulks-public.js?ver=7.1.2

js bushongvintagecompany.com collected 2026-10-04 05:39:01 UTC 3,833 bytes, 89 lines download raw bytes

1var ifso_bulks_scope = {
2};
3
4var ifso_bulks_loaded = document.createEvent('Event');
5ifso_bulks_loaded.initEvent('ifso_ajax_bulks_loaded', true, true);
6ifso_bulks_scope.DispatchBulksLoaded  =  function () {
7    document.dispatchEvent(ifso_bulks_loaded);
8    if(typeof(ifso_scope.DispatchAjaxContentLoaded)!=='undefined') ifso_scope.DispatchAjaxContentLoaded();
9};
10
11(function( $ ) {
12    function if_so_bulks_public(){
13        for(var ifso_scope_member_name in ifso_bulks_scope ){
14            if(typeof(ifso_scope_member_name) !=='undefined' && typeof(ifso_bulks_scope[ifso_scope_member_name])!=='undefined'){
15                this[ifso_scope_member_name] = ifso_bulks_scope[ifso_scope_member_name];
16            }
17        }
18    }
19
20    if_so_bulks_public.prototype = {
21        lookForLoadLaterBulksTriggers : function (){
22            var ret = {};
23            var tags = $('IfSoBulk');
24            tags.each(function(index,el){
25                var tid = el.getAttribute('tid');
26                var type = el.getAttribute('column');
27                if(null!== tid && null !== type ){
28                    if(!ret[tid])
29                        ret[tid]  = [];
30                    if($.inArray(tid,ret)<0)
31                        ret[tid].push(type);
32                }
33            });
34            return ret;
35        },
36
37        replaceLoadLaterBulksTriggers : function(){
38            var toReplace = this.lookForLoadLaterBulksTriggers();
39            var _this = this;
40            if (Object.keys(toReplace).length>0){
41                this.sendAjaxReq('render_ifso_bulks_shortcodes',{bulk_triggers:JSON.stringify(toReplace),pageload_referrer:referrer_for_pageload},function(ret){	//Referrer from if-so public
42                    if(ret && ret!== null){
43                        //return false;
44                        try{
45                            var data = (typeof(ret) === 'object') ? ret :  JSON.parse(ret);
46                            $.each(data, function(tid,tval){
47                                var tagsInDom = $('IfSoBulk[tid="'+tid+'"]');
48                                tagsInDom.each(function(i,tag){
49                                    var type = tag.getAttribute('column');
50                                    if(type!==null){
51                                        tag.outerHTML = tval[type];
52                                    }
53                                })
54                                $.each(tval,function(key,val){
55                                    ifso_scope.evalScriptsFromHTML(val);
56                                })
57                            });
58                            ifso_bulks_scope.DispatchBulksLoaded();
59                        }
60                        catch(e){
61                            console.error('Error fetching if-so bulks triggers!');
62                            console.error(e);
63                        }
64                    }
65                })
66            }
67        },
68
69        sendAjaxReq : function(action, data, cb) {
70            data['action'] = action;
71            data['nonce'] = typeof(ifso_nonce)!=='undefined' ? ifso_nonce : nonce;
72            //data['page_url'] = ifso_page_url;
73            data['page_url'] = window.location.href;
74
75            $.post(ajaxurl, data, function(response) {
76                if (cb)
77                    cb(response);
78            });
79        },
80    };
81
82    $(document).ready(function () {
83        var ifso_bulks_public_instance  = new if_so_bulks_public();
84
85        ifso_bulks_public_instance.replaceLoadLaterBulksTriggers();
86        $(document).on('ifso_ajax_conditions_loaded',ifso_bulks_public_instance.replaceLoadLaterBulksTriggers.bind(ifso_bulks_public_instance));
87        $(document).on('ifso_ajax_triggers_loaded',ifso_bulks_public_instance.replaceLoadLaterBulksTriggers.bind(ifso_bulks_public_instance));
88    });
89})( jQuery );

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.