From d7fbea4a20a90feb8590013dfa7c2e75602d9403 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 25 Jan 2025 10:25:06 +0530 Subject: [PATCH] avoid loop while selecting multiple annotations --- static/js/item.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/item.js b/static/js/item.js index 79d0899c..18ccd28c 100644 --- a/static/js/item.js +++ b/static/js/item.js @@ -202,6 +202,11 @@ pandora.ui.item = function() { } }); } + // avoid loop while selecting multiple annotations + if (options.selected == '' && Ox.isArray(pandora.$ui[pandora.user.ui.itemView].options('selected'))) { + delete options.selected + } + console.log("!! video points update", pandora.user.ui.itemView, options) pandora.$ui[pandora.user.ui.itemView].options(options); } }