Skip to content
Snippets Groups Projects
Commit 79e0ed7f authored by Manuel Leduc's avatar Manuel Leduc
Browse files

XWIKI-21689: When switching image selection tabs edits done quickly after change can be lost

parent d88a3639
No related branches found
No related tags found
No related merge requests found
...@@ -128,7 +128,7 @@ define('imageSelector', ['jquery', 'modal', 'resource', 'l10n!imageSelector'], ...@@ -128,7 +128,7 @@ define('imageSelector', ['jquery', 'modal', 'resource', 'l10n!imageSelector'],
// selenium). // selenium).
imageSelector.on('show.bs.tab', function (e) { imageSelector.on('show.bs.tab', function (e) {
// Retrieve the id of the to be shown tab. // Retrieve the id of the to be shown tab.
const nextTabId = $(e.target).attr("aria-controls"); var nextTabId = $(e.target).attr("aria-controls");
setImageReferenceValue(mapTabReference[nextTabId]); setImageReferenceValue(mapTabReference[nextTabId]);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment