mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 17:01:56 +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++;
|
||||
|
||||
if (attempts < 12) {
|
||||
if ((toList && toList !== undefined)) {
|
||||
if (toList) {
|
||||
// toList found, handle it
|
||||
// Then get fromList and handle it
|
||||
initializeWidgetOnList(toList, ".selector-chosen");
|
||||
|
@ -252,7 +252,7 @@ function checkToListThenInitWidget(toListId, attempts) {
|
|||
initializeWidgetOnList(fromList, ".selector-available");
|
||||
} else {
|
||||
// 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