Position displayed wrong in edit mode #1056

Closed
opened 2025-12-29 16:28:21 +01:00 by adam · 8 comments
Owner

Originally created by @quentinsch on GitHub (Jun 23, 2017).

The position selection is displayed wrong in the edit mode. When you view a device it displays correct, but if you're in edit mode the layout is wrong in the selection bar.
See screenshots for clarification.
Happens on version 2.0.7 after upgrading of previous version (1.9.6).

Wrong in edit mode:
schermafbeelding 2017-06-23 om 14 45 37
schermafbeelding 2017-06-23 om 14 45 43

Good in view mode:
schermafbeelding 2017-06-23 om 14 45 59

Originally created by @quentinsch on GitHub (Jun 23, 2017). The position selection is displayed wrong in the edit mode. When you view a device it displays correct, but if you're in edit mode the layout is wrong in the selection bar. See screenshots for clarification. Happens on version 2.0.7 after upgrading of previous version (1.9.6). Wrong in edit mode: ![schermafbeelding 2017-06-23 om 14 45 37](https://user-images.githubusercontent.com/7438854/27482762-febad9ea-5822-11e7-87ec-799f99509fb0.png) ![schermafbeelding 2017-06-23 om 14 45 43](https://user-images.githubusercontent.com/7438854/27482761-feba83d2-5822-11e7-86b1-98e8f1d1398b.png) Good in view mode: ![schermafbeelding 2017-06-23 om 14 45 59](https://user-images.githubusercontent.com/7438854/27482763-fec137b8-5822-11e7-8781-27c826fe30f5.png)
adam closed this issue 2025-12-29 16:28:21 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 23, 2017):

Not sure what you mean by HE; the position? It looks like you need to force a refresh of the Javascript. Try ctrl + F5 or the equivalent for your browser.

@jeremystretch commented on GitHub (Jun 23, 2017): Not sure what you mean by HE; the position? It looks like you need to force a refresh of the Javascript. Try ctrl + F5 or the equivalent for your browser.
Author
Owner

@quentinsch commented on GitHub (Jun 23, 2017):

Yeah, sorry, HE = position.
Refreshing browser or other browsers (Safari/Firefox/Chrome) give the same result.

@quentinsch commented on GitHub (Jun 23, 2017): Yeah, sorry, HE = position. Refreshing browser or other browsers (Safari/Firefox/Chrome) give the same result.
Author
Owner

@jeremystretch commented on GitHub (Jun 23, 2017):

It's possible the Javascript file did not get updated during the installation. Try running ./manage.py collectstatic --no-input

@jeremystretch commented on GitHub (Jun 23, 2017): It's possible the Javascript file did not get updated during the installation. Try running `./manage.py collectstatic --no-input`
Author
Owner

@quentinsch commented on GitHub (Jun 23, 2017):

Didn't help unfortunately.
Output of the command was:
0 static files copied to '/opt/netbox/netbox/static', 263 unmodified.

@quentinsch commented on GitHub (Jun 23, 2017): Didn't help unfortunately. Output of the command was: 0 static files copied to '/opt/netbox/netbox/static', 263 unmodified.
Author
Owner

@jeremystretch commented on GitHub (Jun 23, 2017):

Try going to http://<netbox>/static/js/forms.js. Is that file the same as this one?

@jeremystretch commented on GitHub (Jun 23, 2017): Try going to `http://<netbox>/static/js/forms.js`. Is that file the same as [this one](https://raw.githubusercontent.com/digitalocean/netbox/develop/netbox/project-static/js/forms.js)?
Author
Owner

@quentinsch commented on GitHub (Jun 26, 2017):

I did a diff on the file and the file you referred to on GitHub and they are the same.

@quentinsch commented on GitHub (Jun 26, 2017): I did a diff on the file and the file you referred to on GitHub and they are the same.
Author
Owner

@jeremystretch commented on GitHub (Jun 26, 2017):

Sorry, I'm not sure what would be causing it then. It looks like your installation is still running old code. Try a clean install.

@jeremystretch commented on GitHub (Jun 26, 2017): Sorry, I'm not sure what would be causing it then. It looks like your installation is still running old code. Try a clean install.
Author
Owner

@quentinsch commented on GitHub (Jun 26, 2017):

Strange indeed... I'll try the clean install...
In addition to the problem, when in editing mode if you choose another drop down f.e. front/rear the drop down of the Position corrects itself. Strange behaviour, but probably cache/browser related then... Thanks for looking in to it!

@quentinsch commented on GitHub (Jun 26, 2017): Strange indeed... I'll try the clean install... In addition to the problem, when in editing mode if you choose another drop down f.e. front/rear the drop down of the Position corrects itself. Strange behaviour, but probably cache/browser related then... Thanks for looking in to it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1056