You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested new v3.0.1 in Django admin but it's don't work correctly in the case of nested popups.
Steps I did:
in ajax-select-multiple widget selected "add new" item
opened new item popup window
in new popup window select "add new" item, I fiiled data and saved
popup 2 closes but in popup 1 nothing happens.
I propose problem is ajax-select.js code in line 244: var input = $("#" + win.name.replace("__1", ""));
I changed to: var input = $("#" + win.name.split("__")[0]);
And in my case it's now works.
Problem seems to be in enumerating of popups - every popup has unique number in the end "__1", "__2" etc.
The text was updated successfully, but these errors were encountered:
kalevhark
changed the title
Hardcoded Django add new popup window not working if nested
Django add new popup window not working if nested
Dec 19, 2023
Tested new v3.0.1 in Django admin but it's don't work correctly in the case of nested popups.
Steps I did:
I propose problem is ajax-select.js code in line 244:
var input = $("#" + win.name.replace("__1", ""));
I changed to:
var input = $("#" + win.name.split("__")[0]);
And in my case it's now works.
Problem seems to be in enumerating of popups - every popup has unique number in the end "__1", "__2" etc.
The text was updated successfully, but these errors were encountered: