mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Remove trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@7130 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -13,8 +13,8 @@ function getNumChecked(form) {
|
||||
var num = 0;
|
||||
for (i = 0, n = form.elements.length; i < n; i++) {
|
||||
if (form.elements[i].type == "checkbox") {
|
||||
if (form.elements[i].checked == true)
|
||||
num++;
|
||||
if (form.elements[i].checked == true)
|
||||
num++;
|
||||
}
|
||||
}
|
||||
return num;
|
||||
@@ -22,8 +22,8 @@ function getNumChecked(form) {
|
||||
|
||||
function checkAllUsers(role) {
|
||||
var checkboxs = document.getElementsByTagName('input');
|
||||
for(var i = 0, inp; inp = checkboxs[i]; i++)
|
||||
if(inp.type.toLowerCase() == 'checkbox' && inp.className == role)
|
||||
for(var i = 0, inp; inp = checkboxs[i]; i++)
|
||||
if(inp.type.toLowerCase() == 'checkbox' && inp.className == role)
|
||||
if(inp.checked == false)
|
||||
inp.checked = true;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user