Make WordPress Core

Ticket #15580: 15580_loading_overlay_v3.diff

File 15580_loading_overlay_v3.diff, 2.6 KB (added by batmoo, 14 years ago)

Fixes sizing issues, alignment, and scrolling

  • wp-admin/css/ie.dev.css

     
    463463.menu li.sortable-placeholder {
    464464        min-width:400px;
    465465}
     466
     467#loading-items {
     468        filter:alpha(opacity=70);
     469}
  • wp-admin/css/wp-admin.dev.css

     
    41894189#loading-items {
    41904190        position: absolute;
    41914191        z-index: 9999;
    4192         padding: 10px 0;
    4193         background-color: #fff;
     4192        background-color: #eee;
     4193        opacity: 0.7;
     4194        height: 100%;
     4195        width: 100%;
     4196}
     4197#loading-items span {
    41944198        font-weight: bold;
    41954199        text-align: center;
    4196         opacity: 0.5;
     4200        background: url(../images/loading-lg.gif) no-repeat 50% top;
     4201        margin-top: 7px;
     4202        line-height: 32px;
     4203        display: block;
     4204        text-indent: -9999px;
    41974205}
    41984206#howto {
    41994207        font-size: 11px;
  • wp-admin/js/list-table.dev.js

    Cannot display: file marked as a binary type.
    svn:mime-type = application/octet-stream
    
    Property changes on: wp-admin\images\loading-lg.gif
    ___________________________________________________________________
    Added: svn:mime-type
       + application/octet-stream
    
     
    1515
    1616                this.$tbody = $('#the-list, #the-comment-list');
    1717
    18                 this.$overlay = $('<div id="loading-items">')
    19                         .html(listTableL10n.loading)
     18                this.$overlay = $('<div>')
     19                        .attr('id', 'loading-items')
     20                        .html('<span>' + listTableL10n.loading + '</span>')
    2021                        .hide()
    2122                        .prependTo($('body'));
    2223        },
     
    5354                if ( !different )
    5455                        return false;
    5556
     57                scrollTo(0, 0);
     58
    5659                this.show_overlay();
    5760
    5861                if ( reset_paging )
     
    131134
    132135                this.$overlay
    133136                        .css({
    134                                 width: this.$tbody.width() + 'px',
    135                                 height: this.$tbody.height() - 20 + 'px'
     137                                width: this.$tbody.outerWidth(true) + 'px',
     138                                height: this.$tbody.outerHeight(true) + 'px'
    136139                        })
    137140                        .css(this.$tbody.offset())
    138141                        .show();
     
    155158                if ( paged > listTable.get_total_pages() )
    156159                        paged = listTable.get_total_pages();
    157160
    158                 listTable.update_rows({'paged': paged}, false, function() {
    159                         if ( $el.parents('.tablenav.bottom').length )
    160                                 scrollTo(0, 0);
    161                 });
     161                listTable.update_rows({'paged': paged}, false);
    162162        }
    163163
    164164        // pagination