Media Modal: Attachments on the gallery page now inherit general events with the exception of click-to-select. see #21390.

git-svn-id: https://develop.svn.wordpress.org/trunk@22183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-10-11 04:04:12 +00:00
parent a6b7bda12f
commit 37fe9438dd
1 changed files with 8 additions and 5 deletions

View File

@ -388,7 +388,8 @@
'click .attachment-preview': 'toggleSelection',
'mouseenter .attachment-preview': 'shrink',
'mouseleave .attachment-preview': 'expand',
'change .describe': 'describe'
'change .describe': 'describe',
'click .close': 'toggleSelection'
},
buttons: {},
@ -562,9 +563,11 @@
close: true
},
events: {
'click .close': 'toggleSelection'
}
events: (function() {
var events = _.clone( media.view.Attachment.prototype.events );
delete events['click .attachment-preview'];
return events;
}())
});
/**