silverstripe/sapphire — comment on commit 46628721fe72d4473133ae3dd37b536aa53aea16
File: admin/javascript/LeftAndMain.js line 366
By sminnee:

You seem to be suggesting that every single checkboxset field will get the chosen.js treatment, but that is only the case if the ChecktboxSetField_Select template is used. I'd suggest applying another class, eg, "chosenjs", with the `CheckboxSetField_Select` template or simialr, and then applying this javascript to that class.

If a random developer chucks a vanilla CheckboxSetField into their getCMSFields, I believe it will break at the moment.