• 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-file-manager/lib/js/ui/overlay.js
    Артем ШиряевАртем Ширяев committed 554847ddcb906 Apr 2021
    Raw file
    Source viewDiff to previous
     
    1
    ​
    2
    jQuery.fn.elfinderoverlay = function(opts) {
    3
        "use strict";
    4
        var fm = this.parent().elfinder('instance'),
    5
            o, cnt, show, hide;
    6
        
    7
        this.filter(':not(.elfinder-overlay)').each(function() {
    8
            opts = Object.assign({}, opts);
    9
            jQuery(this).addClass('ui-front ui-widget-overlay elfinder-overlay')
    10
                .hide()
    11
                .on('mousedown', function(e) {
    12
                    e.preventDefault();
    13
                    e.stopPropagation();
    14
                })
    15
                .data({
    16
                    cnt  : 0,
    17
                    show : typeof(opts.show) == 'function' ? opts.show : function() { },
    18
                    hide : typeof(opts.hide) == 'function' ? opts.hide : function() { }
    19
                });
    20
        });
    21
        
    22
        if (opts == 'show') {
    23
            o    = this.eq(0);
    24
            cnt  = o.data('cnt') + 1;
    25
            show = o.data('show');
    26
    ​
    27
            fm.toFront(o);
    28
            o.data('cnt', cnt);
    29
    ​
    30
            if (o.is(':hidden')) {
    31
                o.show();
    32
                show();
    33
            }
    34
        } 
    35
        
    36
        if (opts == 'hide') {
    37
            o    = this.eq(0);
    38
            cnt  = o.data('cnt') - 1;
    39
            hide = o.data('hide');
    40
            
    41
            o.data('cnt', cnt);
    42
                
    43
            if (cnt <= 0) {
    44
                o.hide();
    45
                hide();
    46
            }
    47
        }
    48
        
    49
        return this;
    50
    };
    • 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.