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:
parent
a6b7bda12f
commit
37fe9438dd
|
@ -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;
|
||||
}())
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue