I am using the following code for a columns filter chooser: http://drupal.org/project/columns_filter.

After applying the patch: http://drupal.org/node/564720 , the column filter has two sets of code to insert <!--section> and <!--column> . I using the following chooser.

However, the chooser shows <>section> and <>column>. I strongly believe there would be better way to do this. Please help!

js:
var tags = [['<!--section-->', 'section'], ['<!--column-->', 'column']];
E.tagChooser(tags);
$('a.choice-link', E.quickPop).unbind('click').each(function(i, a) {
  $(a).click(function() {
    E.replaceSelection(tags[i][0]).focus();
    return false;
  });
});

Comments

ufku’s picture

Since those are not regular tags you should set the option "applyTag" to "false".
Replace E.tagChooser(tags); with E.tagChooser(tags, {applyTag: false});

udvranto’s picture

Status: Active » Closed (fixed)

That solved the problem! Thanks!