Skip to content

Use first qor-field for select2-result-template and select2-selection… - #65

Open
glebtv wants to merge 1 commit into
qor:masterfrom
glebtv:master
Open

Use first qor-field for select2-result-template and select2-selection…#65
glebtv wants to merge 1 commit into
qor:masterfrom
glebtv:master

Conversation

@glebtv

Copy link
Copy Markdown

This is needed for serializeable_meta because it wraps multiple fields with qor-field, so all fields will have the first one's template.

…-template
This is needed for serializeable_meta because it wraps multiple fields
with qor-field
@jinzhu
jinzhu requested a review from jasonwengApril 18, 2017 15:58

@jasonwengjasonweng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to add .first() selector, $this.parents('.qor-field') will find the closest .qor-field tag.

Please take a screenshot for your HTML structrue. i don't think .first() selector is necessary.

@glebtv

glebtv commented Apr 19, 2017

Copy link
Copy Markdown
Author

This in in "worker/jobs" page, arguments to a job.

.parents() finds not the first but all matching parents up to <body>, see https://jsfiddle.net/8e4u1zou/

@jasonweng

Copy link
Copy Markdown
Member

Use .closest('. qor-field') is works for you?

@theplant-ci

Copy link
Copy Markdown

@glebtv: PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@glebtv@jasonweng@theplant-ci