Commit 98e208f5 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
parent 56427392
......@@ -238,6 +238,8 @@
function saveComponentDocument(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
......@@ -272,6 +274,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