rem: else XRai.setFinished(1); 
add: else if (XRai.isConsistent()) XRai.setFinished(1); else XRai.setFinished(0); 
context: XRai.updateSaveIcon = function() {   if (!write_access) return;   var save = document.getElementById("save");   if (XRai.hasChanged()) { save.src = baseurl + "img/filesave.png"; save.setAttribute("title","Save current assessments (" + XRai.changeCount + " changes)");  }   else { save.src =  baseurl + "img/filenosave.png"; save.setAttribute("title","Nothing to save"); }   if (!highlight_only) {        var x = document.getElementById("UnknownA");        x.replaceChild(document.createTextNode(XRai.toAssess.length), x.firstChild);   }   // Update the validation   if (highlight_only) {      if (docStatus == 2) XRai.setFinished(2);      else XRai.setFinished(1);   } else if (docStatus > 0) {      if (docStatus == 2 && XRai.toAssess.length > 0) docStatus = 1;      if (docStatus == 1 && XRai.toAssess.length == 0) { XRai.setFinished(1); }      else if (docStatus == 2) XRai.setFinished(2);      else XRai.setFinished(0);   } else XRai.setFinished(0);}
meta: 8632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8632/07a6aac453fc37870277d3b8b745ae35c071c17b/article.js/buggy/trunk/js/article.js