Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

samlown
Copy link

@samlown samlown commented Dec 15, 2012

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

@rafi
Copy link

rafi commented Apr 22, 2014

+1 for ignoring disabled inputs, very important.

@jamiebuilds
Copy link
Member

@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?

@jamiebuilds
Copy link
Member

Cross-reference: #19

@rafi
Copy link

rafi commented May 22, 2014

@samlown do you plan on separating this pull-request as @thejameskyle requested? If not, I'll do it.

@samlown
Copy link
Author

samlown commented May 22, 2014

@rafi I'm quite detached from this at the moment. If you want to go ahead, please do so!

@normanrz
Copy link

+1

@andrefgneves
Copy link

+1


elements = _.reject(elements, function(el){
// Reject disabled fields always
if (el.hasAttribute('disabled')) { return true; }
Copy link
Contributor

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

@rhubarbselleven
Copy link
Contributor

Closing in favour of #93

Rejecting disabled fields continued in #70

Thanks for the great work guys 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants