From a3336d92b35239eacb3b67223c60f19fe314540e Mon Sep 17 00:00:00 2001 From: j Date: Fri, 24 Jan 2025 15:19:09 +0530 Subject: [PATCH] title or id is required to move files --- static/js/mediaView.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/mediaView.js b/static/js/mediaView.js index c453c7f7..733c5422 100644 --- a/static/js/mediaView.js +++ b/static/js/mediaView.js @@ -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'