Closed (fixed)
Project:
Chosen
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2015 at 20:18 UTC
Updated:
25 Oct 2016 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sseguin commentedComment #2
sseguin commentedComment #3
sseguin commentedComment #4
sseguin commentedComment #5
villette commentedI've updated the patch in #3 to include three options:
Comment #6
jeroentComment #7
brockfanning commentedThe patch works as it is intended, but unfortunately doesn't catch my use-case, which is the ctools modals that pop up when using Panels' in-place editor. This isn't surprising, since the page that the modals display on is neither administrative nor ajax.
In case it helps, the trick in using the selectors setting may be to figure out what the "context" variable is in the chosen.js. For example I wanted to get Chosen working in panels IPE modals. First I tried:
body.panels-ipe select:visibleBut that didn't work. The reason is the the body element is outside the "context" variable in chosen.js. So I tried this:
.ctools-modal-content select:visibleThis works because .ctools-modal-content is inside the "context" variable in chosen.js.
Comment #8
brockfanning commentedTo be clear though, I tested the patch and it does work. I only included the info about the selectors setting on the off chance that it may help with the original problem.
Comment #9
lpeabody commentedReviewed and tested by brockfanning.
Comment #10
nagy.balint commentedGoing to review this soon.
Comment #11
mr.york commentedTested and reviewed ant reroll last patch.
Comment #13
nagy.balint commentedCommitted.
Comment #14
mr.york commentedComment #15
mr.york commentedAttached d8 port.
Comment #17
nagy.balint commentedCommitted.
Comment #19
jeroent