# HG changeset patch # User Giulio Moro # Date 1461505286 -3600 # Node ID a6ce34b4dd418704121526b4c684fca12ad96ef3 # Parent 0dde5b0c5d5ca1d4b9c942f33a6b75c593adadda checkOneFragmentSelected ignored when one or more fragments are inactive diff -r 0dde5b0c5d5c -r a6ce34b4dd41 core.js --- a/core.js Sun Apr 24 13:42:51 2016 +0100 +++ b/core.js Sun Apr 24 14:41:26 2016 +0100 @@ -3139,7 +3139,15 @@ this.checkOneFragmentSelected = function(){ console.log("checkOneFragmentSelected"); var str = "You should select an answer before continuing"; - if(this.comparator.selected === null){ + var isInactive = 0; + for (var ao of audioEngineContext.audioObjects) + { + if(ao.specification.inactive === true) + { + ++isInactive; + } + } + if(this.comparator.selected === null && isInactive===0){ alert(str); return false; } else {