Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2008 at 22:17 UTC
Updated:
31 Jul 2008 at 04:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
wim leersNo patch!
Comment #2
jrbeemanWhoops - sorry about that! Patch attached.
Comment #3
wim leersLooks good, except for 1 thing: this will *not* trigger "before <some event>" events for the
update hierarchical selectevent when the cache is being used! (See line 335.) Is that for a specific reason?Comment #4
wim leersI'm just going to add a "before update hierarchical select from cache" event, that should be all you could ever want.
UPDATE
I'm going to drop this proposed event because it doesn't make much sense, typically you want to do something before an event because that event is going to take some time (i.e. AJAX requests to the server most of the time). But in the case of the cache, that's simply not true.
Comment #5
wim leersAnd instead of passing the settings, which are VERY minimal (animationDelay and cacheId, if using a cache), I'm going to pass the hsid.
Comment #6
wim leersPatch attached and committed.
Comment #7
jrbeemanBeen toying with how this works now, and I think the
settingsvariable need to be passed through in order for some behaviors to be possible.For example: The module I'm writing needs to know the value of the selected item in the hierarchy. The HSID tells me which hierarchical select block was modified, but that doesn't help me figure out the value of the particular select box that just changed (at least, not without writing a bunch of additional stuff to parse through the select boxes within it). The
settingsvariable contains the property "select_id", which gives the HTML ID attribute for the select box that triggered the event.The attached patch restores this functionality - but if there's some other way to get what I'm after, please let me know.
Comment #8
wim leersAgreed :)
Committed!
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.