-
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
Form tag no longer required in view and disabled fields are ignored #18
Conversation
+1 for ignoring disabled inputs, very important. |
@samlown Hey, I apologize that this was left for a year. If you're still interested in making these changes to Backbone.Syphon would you mind pulling them into separate pull requests for the form element and disabled inputs? |
Cross-reference: #19 |
@samlown do you plan on separating this pull-request as @thejameskyle requested? If not, I'll do it. |
@rafi I'm quite detached from this at the moment. If you want to go ahead, please do so! |
+1 |
+1 |
|
||
elements = _.reject(elements, function(el){ | ||
// Reject disabled fields always | ||
if (el.hasAttribute('disabled')) { return true; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be excluded from this PR.
Cross ref #70
This is a remake of my previous pull request #9 for the latest release (0.4.1).
If a form tag is not found in the view, the $(':input') selector will be used instead to find all input fields.
Additionally, disabled fields will be completely ignored, to more closely match a regular HTML form.
Cheers,
sam