diff --git a/lib/ice-coder.js b/lib/ice-coder.js
index 4fc8725..53c61f9 100644
--- a/lib/ice-coder.js
+++ b/lib/ice-coder.js
@@ -2026,6 +2026,23 @@ var ICEcoder = {
cM.focus();
},
+ // Update the title tag to indicate any changes
+ indicateChanges: function() {
+ var winTitle;
+
+ if (!top.ICEcoder.loadingFile) {
+ winTitle = "ICEcoder v "+top.ICEcoder.versionNo;
+ for(var i=1;i<=top.ICEcoder.savedPoints.length;i++) {
+ if (top.ICEcoder.savedPoints[i-1]!=top.ICEcoder.getcMInstance(i).changeGeneration()) {
+ // We have an unsaved tab, indicate that in the title
+ winTitle += " *";
+ break;
+ }
+ }
+ top.document.title = winTitle;
+ }
+ },
+
// ==============
// TABS
// ==============
@@ -2229,6 +2246,9 @@ var ICEcoder = {
if (!dontSetPV) {
top.ICEcoder.setPreviousFiles();
}
+
+ // Update the title tag to indicate any changes
+ top.ICEcoder.indicateChanges();
}
// Lastly, stop it from trying to also switch tab
top.ICEcoder.canSwitchTabs=false;
@@ -2244,6 +2264,8 @@ var ICEcoder = {
top.ICEcoder.closeTab(i, i>1? true:false);
}
}
+ // Update the title tag to indicate any changes
+ top.ICEcoder.indicateChanges();
},
// Set the tabs width
diff --git a/lib/ice-coder.min.js b/lib/ice-coder.min.js
index b3769de..5efc8bd 100644
--- a/lib/ice-coder.min.js
+++ b/lib/ice-coder.min.js
@@ -88,30 +88,31 @@ b)},dataMessage:function(a){var b;b=top.ICEcoder.content.contentWindow.document.
top.ICEcoder.bugFilesSizesSeen=top.ICEcoder.bugFilesSizesActual)},startBugChecking:function(){var a;0!==top.ICEcoder.bugFileCheckTimer?("undefined"!=typeof top.ICEcoder.bugFileCheckInt&&clearInterval(top.ICEcoder.bugFileCheckInt),top.ICEcoder.bugFilesSizesSeen=[],top.ICEcoder.bugFileCheckInt=setInterval(function(){a="lib/bug-files-check.php?";a+="files="+(""!==top.ICEcoder.bugFilePaths[0]?top.ICEcoder.bugFilePaths.join():"null").replace(/\//g,"|");a+="&filesSizesSeen=";if(top.ICEcoder.bugFilesSizesSeen.length!=
top.ICEcoder.bugFilePaths.length)for(var b=0;b
"+top.ICEcoder.xssClean(a.getValue())+"