The current dynamicload depends on user clicks. Sometimes, though, we want to load programmatically without user input. Of course, we could call $(elt).click(), but it would be cleaner to enable this as an option.

Patch attached. I'm also refactoring the settings passed in to set defaults the jQuery way. Also adding an option to show or not show the loaded content.

CommentFileSizeAuthor
dynamicload-no-click.patch2.56 KBnedjo

Comments

nedjo’s picture

Status: Active » Fixed

Done.

This is partly to facilitate the dynamic loading of primary tabs (local tasks), http://drupal.org/node/126532.

Anonymous’s picture

Status: Fixed » Closed (fixed)