• denism300

    (@denism300)


    you need to find

    createAttachments: function ()

    in enhanced-media-library/js/eml-media-views.js (line ~1100)
    and replace it with this:

    createAttachments: function() {
                this.attachments = new media.view.Attachments({
                    controller: this.controller,
                    collection: this.collection,
                    selection: this.options.selection,
                    model: this.model,
                    sortable: this.options.sortable,
                    scrollElement: this.options.scrollElement,
                    idealColumnWidth: this.options.idealColumnWidth,
    
                    // The single <code>Attachment</code> view to be used in the <code>Attachments</code> view.
                    AttachmentView: this.options.AttachmentView
                });
    
                // Add keydown listener to the instance of the Attachments view
                this.controller.on('attachment:keydown:arrow', _.bind(this.attachments.arrowEvent, this.attachments));
                this.controller.on('attachment:details:shift-tab', _.bind(this.attachments.restoreFocus, this.attachments));
    
                this.views.add(this.attachments);
    
                if (this.controller.isModeActive('grid')) {
                    this.attachmentsNoResults = new View({
                        controller: this.controller,
                        tagName: 'p'
                    });
    
                    this.attachmentsNoResults.$el.addClass('hidden no-media');
                    this.attachmentsNoResults.$el.html(l10n.noMedia);
    
                    this.views.add(this.attachmentsNoResults);
                }
            },

    at least it works for me

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fix EML in WP 5.3’ is closed to new replies.