Hi,
in the hierarchical_select.js the dropbox remove button text is allways the first (.dropbox-remove:first) remove button text.
So i am not able to differnt remove text inside my theme_hierarchical_select_dropbox_table method.

--- hierarchical_select.js line : 97
var removeString = $('#hierarchical-select-'+ hsid +'-wrapper .dropbox .dropbox-remove:first', Drupal.HierarchicalSelect.context).text();

$('#hierarchical-select-'+ hsid +'-wrapper', Drupal.HierarchicalSelect.context)
// Remove the .nojs div.
.find('.nojs').hide().end()
// Find all .dropbox-remove cells in the dropbox table.
.find('.dropbox .dropbox-remove')
// Hide the children of these table cells. We're not removing them because
// we want to continue to use the "Remove" checkboxes.
.find('*').css('display', 'none').end() // We can't use .hide() because of collapse.js: http://drupal.org/node/351458#comment-1258303.
// Put a "Remove" link there instead.
.append(''+ removeString +'');

Thanks
Christian

Comments

K.MacKenzie’s picture

Did you find a solution to this? I am faced with the same problem. I find it strange that it would be designed in a way that didn't allow for re-themeing of the remove buttons.

Wim Leers’s picture

Priority: Normal » Minor
Status: Active » Postponed