Commit 0e6f64b8 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 401c0473
...@@ -238,6 +238,8 @@ ...@@ -238,6 +238,8 @@
function saveComponentDocument(cm, event) {\n function saveComponentDocument(cm, event) {\n
event.stopPropagation();\n event.stopPropagation();\n
event.preventDefault();\n event.preventDefault();\n
var document_title = document.title;\n
document.title = "💾💤 " + document_title\n
\n \n
clickSaveButton(\'Base_edit\');\n clickSaveButton(\'Base_edit\');\n
\n \n
...@@ -272,6 +274,11 @@ ...@@ -272,6 +274,11 @@
url: \'getTranslatedValidationStateTitle\',\n url: \'getTranslatedValidationStateTitle\',\n
success: getTranslatedValidationStateTitleHandler});\n success: getTranslatedValidationStateTitleHandler});\n
}\n }\n
\n
document.title = "💾✔ " + document_title\n
setTimeout(function() {\n
document.title = document_title\n
}, 500);\n
\n \n
updateErrorWarningMessageDivWithJump();\n updateErrorWarningMessageDivWithJump();\n
\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