changeset 2358:c812d5cc2dc6

Revert "Changed alert for scalerange check for AB/ABX interfaces #52" This reverts commit 9aa24cd2a8dfeac04f2e9498c951494143c74518.
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Mon, 16 May 2016 15:23:54 +0100
parents 66cbd68a4ed0
children 971acb7e3fab
files js/core.js
diffstat 1 files changed, 3 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Mon May 16 15:06:34 2016 +0100
+++ b/js/core.js	Mon May 16 15:23:54 2016 +0100
@@ -2891,8 +2891,6 @@
         var str = "Please keep listening. ";
         var minRanking = Infinity;
         var maxRanking = -Infinity;
-        var interface = page.specification.interface;
-        var isAb = interface === "AB" || interface === "ABX";
         for (var ao of audioObjects) {
             var rank = ao.interfaceDOM.getValue();
             if (rank < minRanking) {minRanking = rank;}
@@ -2902,12 +2900,8 @@
             str += "At least one fragment must be below the "+min+" mark.";
             state = false;
         }
-	if (maxRanking*100 < max) {
-	    if(isAb){ // if it is AB or ABX let's phrase it differently
-                str += "You must select a fragment before continuing";
-            } else{
-                str += "At least one fragment must be above the "+max+" mark."
-            }
+        if (maxRanking*100 < max) {
+            str += "At least one fragment must be above the "+max+" mark."
             state = false;
         }
         if (!state) {
@@ -2917,6 +2911,7 @@
         }
         return state;
     }
+    
     this.storeErrorNode = function(errorMessage)
     {
         var time = audioEngineContext.timer.getTestTime();