diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 184d24e..f74ceeb 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -2056,7 +2056,7 @@ var ICEcoder = { // Alphabetize tabs alphaTabs: function() { - if (top.ICEcoder.cMInstances.length>0) { + if (top.ICEcoder.openFiles.length>0) { var currentArray, currentArrayFull, alphaArray, nextValue, nextPos; currentArray = []; diff --git a/lib/ice-coder.min.js b/lib/ice-coder.min.js index 7c55c51..696f213 100644 --- a/lib/ice-coder.min.js +++ b/lib/ice-coder.min.js @@ -97,7 +97,7 @@ top.ICEcoder.tabDragMouseX<=parseInt(top.document.getElementById("newTab").style top.ICEcoder.tabLeftPos[c-1]:b,c!=top.ICEcoder.draggingTab&&(c=top.ICEcoder.tabLeftPos[c-1]?top.ICEcoder.tabLeftPos[c-1]-b:top.ICEcoder.tabLeftPos[c-1])},tabDragEnd:function(){var a,b;top.ICEcoder.setTabWidths();for(var c=1;c<=top.ICEcoder.openFiles.length;c++)top.ICEcoder.thisLeft>=top.ICEcoder.tabLeftPos[c- 1]&&(a=top.ICEcoder.thisLeft==top.ICEcoder.tabLeftPos[0]?1:top.ICEcoder.dragTabNo>c?c+1:c),top.document.getElementById("tab"+c).className="tab",top.document.getElementById("tab"+c).style.opacity=1,c!=top.ICEcoder.dragTabNo?top.document.getElementById("tab"+c).style.zIndex=1:setTimeout(function(){top.document.getElementById("tab"+c).style.zIndex=1},150);if(top.ICEcoder.thisLeft&&!1!==top.ICEcoder.thisLeft){b=[];for(c=1;c<=top.ICEcoder.openFiles.length;c++)b.push(c);b.splice(top.ICEcoder.dragTabNo- 1,1);b.splice(a-1,0,top.ICEcoder.dragTabNo);ICEcoder.sortTabs(b)}top.ICEcoder.setTabWidths();top.ICEcoder.draggingTab=!1;top.ICEcoder.thisLeft=!1},sortTabs:function(a){var b,c,d;b=[ICEcoder.changedContent,ICEcoder.openFiles,ICEcoder.openFileMDTs,ICEcoder.cMInstances];c=[[],[],[],[]];for(var e=0;e