Fix check all for IE. Props mdawaffe. fixes #6268

git-svn-id: https://develop.svn.wordpress.org/trunk@7371 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-03-18 02:04:54 +00:00
parent e3bb240c81
commit 0d55e6a0cd
2 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
function checkAll(form) { function checkAll(form) {
for (i = 0, n = form.elements.length; i < n; i++) { for (i = 0, n = form.elements.length; i < n; i++) {
if(form.elements[i].type == "checkbox" && !(form.elements[i].hasAttribute('onclick'))) { if(form.elements[i].type == "checkbox" && !(form.elements[i].getAttribute('onclick',2))) {
if(form.elements[i].checked == true) if(form.elements[i].checked == true)
form.elements[i].checked = false; form.elements[i].checked = false;
else else

View File

@ -128,7 +128,7 @@ class WP_Scripts {
'pending' => __('%i% pending') // must look like: "# blah blah" 'pending' => __('%i% pending') // must look like: "# blah blah"
) ); ) );
$this->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20070823' ); $this->add( 'admin-users', '/wp-admin/js/users.js', array('wp-lists'), '20070823' );
$this->add( 'admin-forms', '/wp-admin/js/forms.js', false, '20080108' ); $this->add( 'admin-forms', '/wp-admin/js/forms.js', false, '20080317' );
$this->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' ); $this->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' );
$this->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' ); $this->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' );
$this->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery'), '20080128' ); $this->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery'), '20080128' );