If we are loading a node form with AHAH, for example, Drupal.settings.nice_tags won't get updated with the new nice_tags_wrapper ids, and not bind js code to it.

after_build is being called though, since the wrapper HTML is being called successfully.

Comments

nunoveloso’s picture

Tried to get the ids array static and add to ahah Drupal object, when adding js in after_build:

    //add to AHAH Drupal obj
    if ($assync) {
       drupal_add_js(array('ahah' => array('nice_tags' => array('nice_tags_ids' => $nice_tags_ids))), 'setting');
    }

But it's making jQ going havoc.

nunoveloso’s picture

Status: Active » Fixed

Fixed. Currently in dev branch, will feature in next stable release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.