mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°3786 - Fix unload XHR call being always sent, even when no draft entries
This commit is contained in:
@@ -244,7 +244,9 @@ $(function()
|
||||
}
|
||||
// - Processing / cleanup when the leaving page
|
||||
$(window).on('unload', function() {
|
||||
return me._onUnload();
|
||||
if (true === me._HasDraftEntries()) {
|
||||
return me._onUnload();
|
||||
}
|
||||
});
|
||||
|
||||
// Mostly for outside clicks that should close elements
|
||||
|
||||
Reference in New Issue
Block a user