1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

5968: move prevent default to top to prevent modal from crashing with promise

This commit is contained in:
jwaresoft 2024-08-29 12:23:47 -07:00 committed by Bill Thornton
parent 20ea6041a7
commit 61eb481d20

View file

@ -25,6 +25,8 @@ import alert from '../alert';
import template from './mediaLibraryCreator.template.html'; import template from './mediaLibraryCreator.template.html';
function onAddLibrary(e) { function onAddLibrary(e) {
e.preventDefault();
if (isCreating) { if (isCreating) {
return false; return false;
} }
@ -61,7 +63,6 @@ function onAddLibrary(e) {
isCreating = false; isCreating = false;
loading.hide(); loading.hide();
}); });
e.preventDefault();
} }
function getCollectionTypeOptionsHtml(collectionTypeOptions) { function getCollectionTypeOptionsHtml(collectionTypeOptions) {