Skip to content
Snippets Groups Projects
Commit 8cd141f0 authored by young hahn's avatar young hahn
Browse files

Fixing nesting of block markup on AHAH replacement.

parent 7ad1f0aa
No related branches found
Tags 6.x-1.0-beta3
No related merge requests found
// $Id$
Drupal.behaviors.boxes = function(context) {
// Unwrap the AHAH call contents as ahah.js replaces the *contents* of the
// wrapper, not the wrapper itself.
if ($(context).is('div') && $('div.block-boxes', context).size() > 0) {
$(context).replaceWith($('div.block-boxes', context).children());
}
$('div.boxes-box-controls a:not(.boxes-processed)')
.addClass('boxes-processed')
.click(function() {
......@@ -36,4 +41,4 @@ Drupal.behaviors.boxes = function(context) {
});
}
});
};
\ No newline at end of file
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment