Commit ebd751ac 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 edb87c6b
......@@ -227,6 +227,8 @@
function saveComponentDocument(cm, event) {
event.stopPropagation();
event.preventDefault();
var document_title = document.title;
document.title = "💾💤 " + document_title;
clickSaveButton('Base_edit');
......@@ -261,6 +263,10 @@
url: 'getTranslatedValidationStateTitle',
success: getTranslatedValidationStateTitleHandler});
}
document.title = "💾✔ " + document_title;
setTimeout(function() {;
document.title = document_title;
}, 500);
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