From 25b733cea230224b9ed02c90365ef4f6587da10d Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Tue, 22 Jul 2014 02:19:21 +0000 Subject: [PATCH] Move the "view" link for attachment details to the sidebar and use more specific language. Removes an unnecessary JS handler. fixes #28977. git-svn-id: https://develop.svn.wordpress.org/trunk@29263 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/media-grid.js | 10 +--------- src/wp-includes/media-template.php | 3 +-- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/wp-includes/js/media-grid.js b/src/wp-includes/js/media-grid.js index 49f512f9b5..67f4dc53b0 100644 --- a/src/wp-includes/js/media-grid.js +++ b/src/wp-includes/js/media-grid.js @@ -285,8 +285,7 @@ 'click .trash-attachment': 'trashAttachment', 'click .edit-attachment': 'editAttachment', 'click .refresh-attachment': 'refreshAttachment', - 'click .edit-image': 'handleEditImageClick', - 'click .view-attachment': 'handleViewAttachmentClick' + 'click .edit-image': 'handleEditImageClick' }, initialize: function() { @@ -329,13 +328,6 @@ this.controller.setState( 'edit-image' ); }, - /** - * When View is clicked, navigate to the attachment page - */ - handleViewAttachmentClick: function() { - window.location = this.model.get( 'link' ); - }, - afterDelete: function( model ) { if ( ! model.destroyed ) { return; diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php index 692c0edac2..8695d3813f 100644 --- a/src/wp-includes/media-template.php +++ b/src/wp-includes/media-template.php @@ -297,8 +297,6 @@ function wp_print_media_templates() { <# } #> - - <# if ( ! data.uploading && data.can.remove ) { #> @@ -393,6 +391,7 @@ function wp_print_media_templates() { <# } #> + |