Make WordPress Core

Ticket #24716: 24716.49.diff

File 24716.49.diff, 793 bytes (added by michalzuber, 11 years ago)

Added href to add-new-h2 due cursor change on hover instead adding into common.css

  • src/wp-includes/js/media-grid.js

     
    201201                        libraryState._renderTitle = function( view ) {
    202202                                var text = this.get('title') || '';
    203203                                view.$el.addClass( 'wrap' );
    204                                 text += '<a class="add-new-h2">Add New</a>';
     204                                text += '<a href="#" class="add-new-h2">Add New</a>';
    205205                                view.$el.html( text );
    206206                        };
    207207                        // Add the default states.
     
    220220
    221221                addNewClickHandler: function() {
    222222                        this.trigger( 'show:upload:attachment' );
     223                        return false;
    223224                },
    224225
    225226                /**
     
    649650                }
    650651        });
    651652
    652 }(jQuery, _, Backbone, wp));
    653  No newline at end of file
     653}(jQuery, _, Backbone, wp));