Problem/Motivation

The module try to use the chosen.css file from the library folder. However, when the library is downloaded using bower, it does not contain this file. Only the compressed chosen.min.css is available. Because of this, while the JavaScript for the module run and alter the selects on the page, they are unusable.

Proposed resolution

In chosen_library(), check if the chosen.css file exists and fall back to chosen.min.css of it doesn't.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sseguin’s picture

Status: Active » Needs review
FileSize
569 bytes

Here is a patch implementing the suggested solution.

brockfanning’s picture

FileSize
638 bytes

Here's a reroll for 7.x-2.0.

  • nagy.balint committed a957310 on 7.x-2.x authored by sseguin
    Issue #2492251 by sseguin, brockfanning: No CSS loaded when the lib is...
nagy.balint’s picture

Status: Needs review » Fixed

Thanks! Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.