Should be just the tab number passed in

This commit is contained in:
Matt Pass
2014-06-18 07:36:42 +01:00
parent b344d1e91e
commit ed5f2259c3

View File

@@ -47,7 +47,7 @@ iceRoot = "<?php echo $ICEcoder['root']; ?>";
window.onbeforeunload = function() {
for(var i=1;i<=ICEcoder.savedPoints.length;i++) {
if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(ICEcoder.cMInstances[i-1]).changeGeneration()) {
if (ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(i).changeGeneration()) {
return "You have some unsaved changes.";
}
}