From a96097b8bfcbf004f97cc3c455e28ac7463d4368 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 24 Jan 2025 17:33:52 +0530 Subject: [PATCH] pass function, don't call it --- static/js/mediaView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/mediaView.js b/static/js/mediaView.js index 21d4dd83..a05aa981 100644 --- a/static/js/mediaView.js +++ b/static/js/mediaView.js @@ -458,7 +458,7 @@ pandora.ui.mediaView = function(options) { } } }).on({ - keyup: updateForm() + keyup: updateForm }); }); @@ -674,7 +674,7 @@ pandora.ui.mediaView = function(options) { disabled: true, value: true }); - } else if (self.$switch) { + } else { self.$switch.options({ disabled: false, value: self.wasChecked