dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19e0c2b
)
Fixed jQuery bug/enahnced jQuery to not blindly convert anything that's not a string...
author
Trevor Parscal
<tparscal@users.mediawiki.org>
Tue, 5 Oct 2010 21:51:24 +0000
(21:51 +0000)
committer
Trevor Parscal
<tparscal@users.mediawiki.org>
Tue, 5 Oct 2010 21:51:24 +0000
(21:51 +0000)
resources/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/resources/jquery/jquery.js
b/resources/jquery/jquery.js
index
fff6776
..
27456ef
100644
(file)
--- a/
resources/jquery/jquery.js
+++ b/
resources/jquery/jquery.js
@@
-6230,7
+6230,7
@@
jQuery.each([ "Height", "Width" ], function( i, name ) {
jQuery.css( elem, type ) :
// Set the width or height on the element (default to pixels if value is unitless)
- this.css( type, typeof size === "string" ? size :
size
+ "px" );
+ this.css( type, typeof size === "string" ? size :
( parseInt( size ) || 0 )
+ "px" );
};
});