Ticket #24716: 24716.51.diff
File 24716.51.diff, 816 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/media-grid.js
212 212 libraryState._renderTitle = function( view ) { 213 213 var text = this.get('title') || ''; 214 214 view.$el.addClass( 'wrap' ); 215 text += '<a class="add-new-h2">Add New</a>';215 text += '<a href="wp-admin/media-new.php" class="add-new-h2">Add New</a>'; 216 216 view.$el.html( text ); 217 217 }; 218 218 // Add the default states. … … 231 231 232 232 addNewClickHandler: function() { 233 233 this.trigger( 'toggle:upload:attachment' ); 234 return false; 234 235 }, 235 236 236 237 /** … … 679 680 } 680 681 }); 681 682 682 }(jQuery, _, Backbone, wp)); 683 No newline at end of file 683 }(jQuery, _, Backbone, wp));