• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
    • Help
      • Online help
      • Learn Git
      • Welcome to Bitbucket
      • Keyboard shortcuts
    • Log In
    Blackrock
    1. Blackrock

    main

    Public
    Actions
    • Clone

    Learn more about cloning repositories

    You have read-only access

    Navigation
    • Source
    • Commits
    • Branches
    • All Branches Graph
    • Graphs
    • Forks
    1. Blackrock
    2. main

    Source

    main/wp-content/plugins/wp-security-audit-log/js/common.js
    Артем ШиряевАртем Ширяев committed 554847ddcb906 Apr 2021
    Raw file
    Source viewDiff to previous
                 } else if ( data.responseText == '"success"' || JSON.stringify(data.responseText).toLowerCase().indexOf('success') >= 0 ) {
     
    1
    /**
    2
     * WSAL Admin Scripts
    3
     *
    4
     * @since 1.0.0
    5
     */
    6
    ​
    7
    jQuery( document ).ready( function() {
    8
    ​
    9
        /**
    10
         * Check & Load New Alerts on WP-Admin bar.
    11
         *
    12
         * @since 3.2.4
    13
         */
    14
        if ( wsalCommonData.liveEvents ) {
    15
            function wsalRefresh() {
    16
                jQuery.ajax({
    17
                    type: 'POST',
    18
                    url: wsalCommonData.ajaxURL,
    19
                    async: true,
    20
                    dataType: 'json',
    21
                    data: {
    22
                        action: 'wsal_adminbar_events_refresh',
    23
                        nonce: wsalCommonData.commonNonce,
    24
                        eventsCount: wsalCommonData.eventsCount
    25
                    },
    26
                    success: function( data ) {
    27
                        if ( data.success ) {
    28
                            wsalCommonData.eventsCount = data.count;
    29
                            jQuery( '.wsal-live-notif-item a' ).html( data.message );
    30
                        }
    31
                    }
    32
                });
    33
            };
    34
    ​
    35
            // Check for new alerts every 30 secs.
    36
            setInterval( wsalRefresh, 30000 );
    37
    ​
    38
            // Make the first call on page load.
    39
            wsalRefresh();
    40
        }
    41
    ​
    42
        jQuery( 'a.wsal-dismiss-notification' ).click( function() {
    43
            var nfe = jQuery( this ).parents( 'div:first' );
    44
            var nfn = nfe.attr( 'data-notice-name' );
    45
            jQuery.ajax({
    46
                type: 'POST',
    47
                url: wsalCommonData.ajaxURL,
    48
                async: false,
    49
                data: { action: 'AjaxDismissNotice', notice: nfn }
    50
            });
    51
            nfe.fadeOut();
    52
        });
    53
    ​
    54
        jQuery( 'head' ).append( '<style>.wp-submenu .dashicons-external:before{vertical-align: bottom;}</style>' );
    55
    ​
    56
        // Add on installer
    57
        jQuery(".install-addon").not('.disabled').click( function(e) {
    58
            // Disable other buttons whilst the process is happening.
    59
            jQuery(".install-addon").not(this).prop('disabled', true);
    60
    ​
    61
            jQuery(this).html( wsalCommonData.installing );
    62
            var currentButton = jQuery(this);
    63
            var PluginSlug = jQuery(this).attr('data-plugin-slug');
    • Git repository management for enterprise teams powered by Atlassian Bitbucket
    • Atlassian Bitbucket v5.10.1
    • Documentation
    • Contact Support
    • Request a feature
    • About
    • Contact Atlassian
    Atlassian

    Everything looks good. Well let you know here if theres anything you should know about.