From 84284a2e3a25e1258a6da8d32448d5ea3b2420d3 Mon Sep 17 00:00:00 2001 From: KaiSD Date: Wed, 4 Sep 2019 20:47:42 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'ace/index.html'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ace/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ace/index.html b/ace/index.html index e7f34f5..de01e1e 100644 --- a/ace/index.html +++ b/ace/index.html @@ -58,7 +58,7 @@ - +
@@ -80,8 +80,9 @@ }); function updateToolbar() { - document.getElementById("btnUndo") = !editor.session.getUndoManager().hasUndo(); - document.getElementById("btnRedo") = !editor.session.getUndoManager().hasRedo(); + document.getElementById("btnUndo").disabled = !editor.session.getUndoManager().hasUndo(); + document.getElementById("btnRedo").disabled = !editor.session.getUndoManager().hasRedo(); + document.getElementById("btnFs").visible = !window.fullScreen; } editor.on("input", updateToolbar);