mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding double click selection in Media
This commit is contained in:
@@ -483,7 +483,7 @@ $(function () {
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#media-library-main-selection-select > .button-select").on('click', function() {
|
||||
var pickAndClose = function () {
|
||||
if (parent.$.colorbox) {
|
||||
var selectedData = [];
|
||||
for (var i = 0; i < viewModel.selection().length; i++) {
|
||||
@@ -492,8 +492,15 @@ $(function () {
|
||||
}
|
||||
parent.$.colorbox.selectedData = selectedData;
|
||||
parent.$.colorbox.close();
|
||||
};
|
||||
}
|
||||
;
|
||||
|
||||
$("#media-library-main-selection-select > .button-select").on('click', function () {
|
||||
pickAndClose();
|
||||
});
|
||||
|
||||
$("#media-library-main-list").on('dblclick', function () {
|
||||
pickAndClose();
|
||||
});
|
||||
|
||||
$("#media-library-main-selection-select > .button-cancel").on('click', function() {
|
||||
|
Reference in New Issue
Block a user