Merge pull request #149 from tophf/dim-save-button

Editor: disable "Save" button when content is unmodified
This commit is contained in:
Jason Barnabe 2015-08-30 11:36:17 -05:00
commit 718d2e0f86

View File

@ -100,6 +100,7 @@ function setCleanItem(node, isClean) {
function isCleanGlobal() { function isCleanGlobal() {
var clean = Object.keys(dirty).length == 0; var clean = Object.keys(dirty).length == 0;
setDirtyClass(document.body, !clean); setDirtyClass(document.body, !clean);
document.getElementById("save-button").disabled = clean;
return clean; return clean;
} }