Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boxes
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
boxes
Commits
8cd141f0
Commit
8cd141f0
authored
15 years ago
by
young hahn
Browse files
Options
Downloads
Patches
Plain Diff
Fixing nesting of block markup on AHAH replacement.
parent
7ad1f0aa
No related branches found
Branches containing commit
Tags
6.x-1.0-beta3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boxes.js
+6
-1
6 additions, 1 deletion
boxes.js
with
6 additions
and
1 deletion
boxes.js
+
6
−
1
View file @
8cd141f0
// $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
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment