Comments (13)
Good catch. Is this something up your alley to debug?
from askthem.
sure, @evz and will take a look
from askthem.
I think I found the offending line of coffee script.
Firebug reports that length as 0 even when there is something selected:
Webkit (in this case Safari) gets a value there:
That's about as far as I can take this tonight (brain is running out of juice).
from askthem.
So, I'm pretty sure I came up with a solution for the bad jquery selector:
$('input[name="question[person_id]"][checked="checked"]').length is 0
Subtle difference but it seems to make at least Firefox happy. However, now that I'm past that step, and I complete the process of filling out the question, I end up back at the beginning, only with the old layout:
If I go through the process again, I get all the older layouts (only the forms are already filled out with the stuff I put in earlier) and then when I hit the "Publish" button again, I end up back at the beginning again. This is only true for me in Firefox. Safari, Chrome, etc perform as expected.
Anyways, I'll probably have a bit of time in a few hours to take a deeper look here. If someone @derekeder or @walter happens to get to it before me, I won't be offended.
from askthem.
So a few things are happening here. Let's step through them.
- see #59 about the old layout popping up (and the lack of informative flash message)
- even though your solution allows Firefox to pass client side validation (recipient shouldn't be blank) it actually preventing client side validation from doing its job... we should not allow recipient to be blank!
$('input[name="question[person_id]"][checked="checked"]').length is 0
Shouldn't this be length is 1? Basically the user should not be able to proceed unless they do have a checked input.
I'm a tad confused about this actually as it looks to contradict "things are working in Safari and Chrome".
What it boils down to is that question[person_id] has to have a person's id passed to questions#create or server side validation will fail. If your solution has the side effect of unsetting a value for question[person_id], it's not complete.
We may need to backburner this. I don't want to eat too much more or your limited time on a browser compatibility issue.
from askthem.
Actually, if that line evaluates as true, the personError
function is triggered and the valid
flag is made false so the form won't submit (that's why it wasn't working in Firefox because that line was always evaluating as true in Firefox).
I'll back off on this stuff for now and we can focus on other stuff. I'll just go ahead and make sure I'm doing my dev work in Chrome/Safari so it actually works for me.
from askthem.
One thing we could have tried is running questions_spec with selenium under Firefox as Capybara's driver. That would, in theory, recreate the issue in probably a number of tests.
from askthem.
@evz, worth double checking this is still an issue.
from askthem.
Yup, still appears to be an issue (assuming oglocal is up to date)
from askthem.
Yep, still a bug in FF. As we know, haha.
from askthem.
23.0.1 still has issue, as does newest 25.0.1. @acacheung is this something that dockyard could help sort out?
from askthem.
Experiencing same problem when looking up twitter account on Firefox:
from askthem.
I've already started looking into all of the issues related to recipients. I'll keep you posted.
from askthem.
Related Issues (20)
- Add images for VA Senators HOT 1
- new users for action network HOT 1
- Staff member can designate user account as representing a partner organization HOT 1
- When asking user is partner organization, a question's TOS are updated to notify of sharing of signatures with partner organization
- Staff members can download CSV of question signers basic information HOT 1
- homepage copy fix
- issue w/ old session? HOT 6
- Internet slowdown day modal HOT 2
- Homepage blurbs not being set as default HOT 4
- increase height of HonestAds widget zip-code box - for FF visitors
- on /map, some city names show Q's, but none listed in /questions HOT 1
- A user's email address can be turned off for notifications HOT 1
- Process AWS SNS bounce notifications by disabling user's email
- images briefly broken on production HOT 6
- name alignment with profile photos got a little wonky HOT 3
- widget design enhancements - seeking volunteer time on useful new tools
- site-wide enhancements to info display & new features
- old verified Twitter avatars not displaying as expected? HOT 2
- PPF devops tasks January 2016 - for time estimates
- reboot site-wide Recent Questions view HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from askthem.