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

git-svn-id: http://core.svn.wordpress.org/trunk@22183 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2012-10-11 04:04:12 +00:00
parent a610836667
commit 4c9f50537c
1 changed files with 8 additions and 5 deletions

View File

@ -385,10 +385,11 @@
template: media.template('attachment'),
events: {
'click .attachment-preview': 'toggleSelection',
'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;
}())
});
/**