From 256177844bb866d4060b53c1bda317b604674e33 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 30 Aug 2015 19:16:41 +0300 Subject: [PATCH] Editor: disable "Save" button when content is unmodified --- edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/edit.js b/edit.js index e15cf5ff..b3be82c2 100644 --- a/edit.js +++ b/edit.js @@ -100,6 +100,7 @@ function setCleanItem(node, isClean) { function isCleanGlobal() { var clean = Object.keys(dirty).length == 0; setDirtyClass(document.body, !clean); + document.getElementById("save-button").disabled = clean; return clean; }