Always show "Configure" links on dashboard widgets in IE6, fix "Right Now" comments counts, fixes #11129

git-svn-id: https://develop.svn.wordpress.org/trunk@12183 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-11-13 05:39:17 +00:00
parent 4bf4ab5114
commit c875acd15d
6 changed files with 23 additions and 5 deletions
+8 -2
View File
@@ -125,11 +125,17 @@ setCommentsList = function() {
}
function updateCount(el, n) {
var n1 = '';
if ( isNaN(n) )
return;
n = n < 1 ? '0' : n.toString();
if ( n.length > 3 )
n = n.substr(0, n.length-3) + thousandsSeparator + n.substr(-3);
if ( n.length > 3 ) {
while ( n.length > 3 ) {
n1 = thousandsSeparator + n.substr(n.length - 3) + n1;
n = n.substr(0, n.length - 3);
}
n = n + n1;
}
el.html(n);
}