mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-15 05:54:11 +02:00
cleanup
This commit is contained in:
parent
a1c5b48f03
commit
8d98434352
1 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@ function checkToListThenInitWidget(toListId, attempts) {
|
||||||
attempts++;
|
attempts++;
|
||||||
|
|
||||||
if (attempts < 12) {
|
if (attempts < 12) {
|
||||||
if ((toList && toList !== undefined)) {
|
if (toList) {
|
||||||
// toList found, handle it
|
// toList found, handle it
|
||||||
// Then get fromList and handle it
|
// Then get fromList and handle it
|
||||||
initializeWidgetOnList(toList, ".selector-chosen");
|
initializeWidgetOnList(toList, ".selector-chosen");
|
||||||
|
@ -252,7 +252,7 @@ function checkToListThenInitWidget(toListId, attempts) {
|
||||||
initializeWidgetOnList(fromList, ".selector-available");
|
initializeWidgetOnList(fromList, ".selector-available");
|
||||||
} else {
|
} else {
|
||||||
// Element not found, check again after a delay
|
// Element not found, check again after a delay
|
||||||
setTimeout(() => checkToListThenInitWidget(toListId, attempts), 300); // Check every 1000 milliseconds (1 second)
|
setTimeout(() => checkToListThenInitWidget(toListId, attempts), 300); // Check every 300 milliseconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue