django-selectable icon indicating copy to clipboard operation
django-selectable copied to clipboard

"Uncaught TypeError: Cannot read property 'push' of undefined"

Open d33tah opened this issue 9 years ago • 3 comments

I tried to use the "add " popup in django admin and after saving, I get the following error in the console:

Uncaught TypeError: Cannot read property 'push' of undefined

Tested on django-admin-bootstrapped. Is there any code to receive the "push"?

d33tah avatar May 18 '16 20:05 d33tah

I don't know about django-admin-bootstrapped but there is code to handle this for the normal add-another pop-up. However, it requires monkey-patching the JS from the admin, namely the dismissAddAnotherPopup callback, and that seems to break with every Django release. What version of Django are you using?

mlavin avatar May 19 '16 11:05 mlavin

@mlavin 1.8.2 right now.

d33tah avatar May 19 '16 11:05 d33tah

There were a number of changes to the admin JS in 1.8 and I thought I had pushed this compatibility on master but I'm not seeing it. Where could that have gone....

mlavin avatar May 19 '16 11:05 mlavin