joomla/joomla-cms — pull request #423 by piotr-cz (2012-09-21 10:34:41+00:00)
Title: Media manager Directory doesn't update while browsing folders

Reason: popup manager alters folderlist element value directly, doesn't trigger 'change' event. Need to update chosen.jquery state manually.

Solution:
jQuery( folderlist ).trigger('liszt:updated');

Note:
Cannot use `jQuery(this.folderlist).trigger('change');`, as this would cause a loop (element is listening to change event -> Maximum call stack size exceeded)