From 8e6f1284e1494bb9327e1f8ca650d751c133272b Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Tue, 23 May 2023 22:03:17 +0000 Subject: [PATCH] Show the edit pane before it finishes loading so that it's more clear it's working. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4310 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/client.js b/core/client.js index d0d1acf15..a9ce7e642 100644 --- a/core/client.js +++ b/core/client.js @@ -390,6 +390,7 @@ function edit() { gSplit = undefined; } gSplit = Split(['#editPane', '#viewPane'], {minSize: 0}); + document.getElementById("editPane").style.display = 'flex'; ensureLoaded([ {tagName: "script", attributes: {src: "/codemirror/codemirror.min.js"}}, @@ -457,7 +458,6 @@ function loadFile(name, id) { }).then(function(text) { gFiles[name].doc = new CodeMirror.Doc(text, guessMode(name)); if (!Object.values(gFiles).some(x => !x.doc)) { - document.getElementById("editPane").style.display = 'flex'; openFile(Object.keys(gFiles).sort()[0]); } });