Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
416ea21c
Commit
416ea21c
authored
Mar 01, 2012
by
Julien Cigar
Browse files
Merge branch 'master' of
ssh://home.bebif.be/usr/local/repos/git/yeti
parents
685306b0
90921926
Changes
1
Hide whitespace changes
Inline
Side-by-side
core.js
View file @
416ea21c
...
...
@@ -39,6 +39,7 @@
src
.
replace
(
/^
\s
+|
\s
+$/g
,
''
);
}
/***********************************************************************
XMLHttpRequest
************************************************************************/
...
...
@@ -409,6 +410,24 @@
elem
.
className
=
values
.
join
(
'
'
);
}
/* Yeti.DOM.removeClass
* Remove a class from an element.
*/
Yeti
.
DOM
.
removeClass
=
function
(
elem
,
value
)
{
if
(
elem
.
className
)
{
var
values
=
value
.
split
(
'
'
),
new_cls
=
elem
.
className
;
for
(
var
i
=
0
,
_len
=
values
.
length
;
i
<
_len
;
i
++
)
{
new_cls
=
new_cls
.
replace
(
values
[
i
],
'
'
);
}
elem
.
className
=
Yeti
.
Str
.
trim
(
new_cls
.
replace
(
/
\s{2,}
/g
,
'
'
))
}
}
/***********************************************************************
Tools
...
...
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