Commit 89664217 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

Conflicts:
	bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
parent 722d4d95
...@@ -211,6 +211,8 @@ ...@@ -211,6 +211,8 @@
function saveComponentDocument(cm, event) { function saveComponentDocument(cm, event) {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
var document_title = document.title;
document.title = "💾💤 " + document_title;
clickSaveButton('Base_edit'); clickSaveButton('Base_edit');
...@@ -245,6 +247,10 @@ ...@@ -245,6 +247,10 @@
url: 'getTranslatedValidationStateTitle', url: 'getTranslatedValidationStateTitle',
success: getTranslatedValidationStateTitleHandler}); success: getTranslatedValidationStateTitleHandler});
} }
document.title = "💾✔ " + document_title;
setTimeout(function() {;
document.title = document_title;
}, 500);
updateErrorWarningMessageDivWithJump(); updateErrorWarningMessageDivWithJump();
......
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