forked from cory/tildefriends
Add args to unsupported message response based on some warnings I saw. Indicate which files are unsaved in the editor.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3638 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -143,6 +143,9 @@ function load() {
|
||||
'indentWithTabs': true,
|
||||
'showTrailingSpace': true,
|
||||
});
|
||||
gEditor.on('changes', function() {
|
||||
updateFiles();
|
||||
});
|
||||
}
|
||||
gFiles = {};
|
||||
var text;
|
||||
@ -208,6 +211,10 @@ function save() {
|
||||
|
||||
var appFinished = function(success) {
|
||||
document.getElementById("save").disabled = false;
|
||||
Object.values(gFiles).forEach(function(file) {
|
||||
file.doc.markClean();
|
||||
});
|
||||
updateFiles();
|
||||
}
|
||||
|
||||
var always = function() {
|
||||
@ -584,6 +591,9 @@ function updateFiles() {
|
||||
if (file == gCurrentFile) {
|
||||
li.classList.add("current");
|
||||
}
|
||||
if (!gFiles[file].doc.isClean()) {
|
||||
li.classList.add("dirty");
|
||||
}
|
||||
node.appendChild(li);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user