Commit 62edd309 authored by Jérome Perrin's avatar Jérome Perrin

codemirror: display an animation in window title so that the window flash when...

codemirror: display an animation in window title so that the window flash when component has been saved.

Use case: save component on one tab, go to "run live test" tab and wait for component to be saved to make sure code runs with latest version
(cherry picked from commit 98e208f5)
parent b8966da6
......@@ -237,6 +237,8 @@
function saveDocument(cm, event) {\n
event.stopPropagation();\n
event.preventDefault();\n
var document_title = document.title;\n
document.title = "💾💤 " + document_title\n
\n
clickSaveButton(\'Base_edit\');\n
\n
......@@ -271,6 +273,11 @@
url: \'getTranslatedValidationStateTitle\',\n
success: getTranslatedValidationStateTitleHandler});\n
}\n
\n
document.title = "💾✔ " + document_title\n
setTimeout(function() {\n
document.title = document_title\n
}, 500);\n
\n
updateErrorWarningMessageDivWithJump();\n
\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment