disable #save button right after opening a style

This commit is contained in:
tophf 2017-12-25 02:26:01 +03:00
parent 4b4b65d961
commit 5df76b04e2

View File

@ -10,6 +10,7 @@ function createSourceEditor(style) {
let savedGeneration = 0; let savedGeneration = 0;
$('#name').disabled = true; $('#name').disabled = true;
$('#save-button').disabled = true;
$('#mozilla-format-container').remove(); $('#mozilla-format-container').remove();
$('#sections').textContent = ''; $('#sections').textContent = '';
$('#sections').appendChild($create('.single-editor')); $('#sections').appendChild($create('.single-editor'));