On Dec 14, 2006, at 1:32 AM, Joost Moesker wrote:
>
> The problem seems to be that the selectshuttle doesn't really pass a
> function to addLoadEvent. This is probely also causes of the cryptic
> mochikit error: '_386[i] has no properties' in the widiget browser.
> The
> error breaks the call stack thus not initializing the
> autocompletefield
> when its put under the select-shuttle.
>
> A quick fix 'which seems to work':
>
> -- addLoadEvent(${optrans_name}.init(${form_reference}));
> ++ ${optrans_name}.init(${form_reference});
>
> Not sure if this is right fix though. The js source state that the
> init
> function should be called trough onLoad..
Hmmm, that could be fixed by wrapping the initializer in another
function so it loads at init time:
addLoadEvent(function(){
${optrans_name}.init(${form_reference});
})
Attached is a patch that fixes it. I've tried to commit the changes
but seems the svn server cannot be resolved (Jorge? where are you? ;)
Alberto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---
onload_bug.patch
Description: Binary data

