Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Belgian Biodiversity Platform
yeti
Commits
7868071c
Commit
7868071c
authored
Apr 26, 2013
by
Julien Cigar
Browse files
remove class= attribute if class is empty
parent
c3d6626e
Changes
1
Hide whitespace changes
Inline
Side-by-side
core.js
View file @
7868071c
...
...
@@ -629,6 +629,10 @@
}
elem
.
className
=
new_cls
.
replace
(
/
\s{2,}
/g
,
'
'
).
trim
();
if
(
elem
.
className
.
length
==
0
)
{
elem
.
removeAttribute
(
'
class
'
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment