Commit f8259425 authored by Jérome Perrin's avatar Jérome Perrin Committed by Gabriel Monnerat

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 cb45d663
...@@ -227,6 +227,8 @@ ...@@ -227,6 +227,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');
...@@ -261,6 +263,10 @@ ...@@ -261,6 +263,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