Ticket #24716: 24716.49.diff
File 24716.49.diff, 793 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/js/media-grid.js
201 201 libraryState._renderTitle = function( view ) { 202 202 var text = this.get('title') || ''; 203 203 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>'; 205 205 view.$el.html( text ); 206 206 }; 207 207 // Add the default states. … … 220 220 221 221 addNewClickHandler: function() { 222 222 this.trigger( 'show:upload:attachment' ); 223 return false; 223 224 }, 224 225 225 226 /** … … 649 650 } 650 651 }); 651 652 652 }(jQuery, _, Backbone, wp)); 653 No newline at end of file 653 }(jQuery, _, Backbone, wp));