Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-3.0-rc1
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
19 Jul 2008 at 16:45 UTC
Updated:
3 Aug 2008 at 11:12 UTC
Jump to comment: Most recent file
Comments
Comment #1
wim leersHeh, very interesting problem. I of course never foresaw this. Will give this some thought.
Comment #2
wim leersOk, this would actually be pretty easy, since all key components are already in place!
1) Add a hierarchy identifier somewhere in Drupal.HierarchicalSelect.settings
2) Whenever a new item is created, check if there are other HSs with the same hierarchy identifier and do a
$(selector).trigger('enforce-update');on them.That's it :)
Comment #3
wim leersI just realized 1) is already supported: the cacheId. Now this becomes REALLY trivial :)
Comment #4
wim leersPlease give this patch a try. :)
Comment #5
wim leersI just tested a slightly improved patch (the above patch also updated the other widgets when the creation of a new item was cancelled), found it worked perfectly, and then committed it.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.