cbrain icon indicating copy to clipboard operation
cbrain copied to clipboard

The master_select boxes in the browse provider page no longer work

Open prioux opened this issue 4 years ago • 2 comments

We have two master select boxes at the top of the data provider browse page:

Register files as [file_select], and directories as [directory_select]

These master select boxes are supposed to switch all the other select boxes down the page automatically when the user picks a type in them. using a "on change" event.

The master select boxes no longer do that. The other selection boxes are not changed.

Estimated time: one day.

prioux avatar Feb 05 '21 15:02 prioux

yup, apparently with chosen, additional event to be triggered

Updating Chosen Dynamically If you need to update the options in your select field and want Chosen to pick up the changes, you'll need to trigger the "chosen:updated" event on the field. Chosen will re-build itself based on the updated content.

$("#form_field").trigger("chosen:updated");

MontrealSergiy avatar Feb 08 '21 17:02 MontrealSergiy

looks like it's broken again

MontrealSergiy avatar Mar 08 '22 22:03 MontrealSergiy

@MontrealSergiy Can you test it again. Works fine on my end (chrome + firefox)

natacha-beck avatar Sep 06 '22 09:09 natacha-beck

did you test the second page or just the first?

MontrealSergiy avatar Sep 06 '22 17:09 MontrealSergiy

works now closing

MontrealSergiy avatar Sep 06 '22 18:09 MontrealSergiy