-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default hide geolcation #575
Conversation
- Geolocation button was showing up when geolocation was not supported (IE8). This hides the button by default and displays it only when geolocation is supported. - Removes unneeded ERB.
Fixes #503 - Moves geolocation button on inside location filter input field above the input field. This makes it so when the geolocation button is hidden initially the layout doesn’t change when the geolocation button shows up.
This also hides geolocation in IE9, which would make #405 moot. |
The button is always hidden for me, even in browsers that support geolocation. I reset Safari to clear all cookies and cache. I tried adding |
Try adding |
Don't see anything logged with that either. Is it working for you? |
If I remove the "hide" from the class, I can see the button, so it sounds like the conditional is not passing, and therefore the class removal never happens. |
Yes, I opened Safari and performed a reset of all settings and was not able to repeat. This code has also been checked on SauceLabs VMs and does not show the button on IE8/IE9 there, but does otherwise. If you don't see the console log above the conditional it means that script isn't running at all. Check that you don't have precompiled assets in |
Just confirmed it's showing on SauceLabs VMs:
It's not showing on IE8 as expected, but it is showing on IE9, which is actually the expected behavior. I guess I didn't wait long enough last time (#405 is still relevant then). |
Ah! Good catch. I did have |
Good to merge. Sorry for the confusion! |
Ah, cool, no worries. Yeah that may explain it because the script in a view wouldn't be considered an asset so if the script is removed in a view partial that would update, but if that code is moved to a JS asset (as is the case in the goog translate branch) that wouldn't update because the JS that got loaded in would be pulled off the precompiled assets. |
(IE8). This hides the button by default and displays it only when
geolocation is supported.
field above the input field. This makes it so when the geolocation button is hidden
initially the layout doesn’t change when the geolocation button shows up.
@monfresh Ready for review and merge. Aligns code here with that in smcgov#49