correctly handle download/edit/delete for selections with mixed mediastate

This commit is contained in:
rlx 2016-01-16 12:49:08 +05:30
commit 5882e97608
4 changed files with 51 additions and 29 deletions

View file

@ -7,7 +7,9 @@ oml.ui.editDialog = function() {
'author', 'place', 'publisher', 'language'
],
hasChanged = false,
ids = ui.listSelection,
ids = ui.listSelection.filter(function(id) {
return oml.$ui.list.value(id, 'mediastate') == 'available';
}),
keys = [
'title', 'author',
'publisher', 'place', 'date',