title or id is required to move files

This commit is contained in:
j 2025-01-24 15:19:09 +05:30
parent c2df43220b
commit a3336d92b3

View file

@ -457,6 +457,8 @@ pandora.ui.mediaView = function(options) {
});
}
}
}).on({
keyup: updateForm()
});
});
@ -679,7 +681,9 @@ pandora.ui.mediaView = function(options) {
});
}
self.$moveButton.options({
disabled: self.selected.length == 0
disabled: self.selected.length == 0 || (
self.$idInput.value().length + self.$titleInput.value().length
) == 0
});
self.$menu[
self.selected.length == 0 ? 'disableItem' : 'enableItem'