From 72e9496bfc2f7a962cf4f428ccab25c7a0175aaa Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 16 Jan 2007 21:27:04 +0000 Subject: WP Merge to rev 4753 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@849 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/upload-js.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'wp-admin/upload-js.php') diff --git a/wp-admin/upload-js.php b/wp-admin/upload-js.php index 67d7a9e..bdf3d1c 100644 --- a/wp-admin/upload-js.php +++ b/wp-admin/upload-js.php @@ -56,7 +56,7 @@ addLoadEvent( function() { this.currentImage.width = false; this.currentImage.height = false; } - this.currentImage.isImage = ( 0 == id ? '' : $('attachment-is-image-' + id).value ); + this.currentImage.isImage = ( 0 == id ? 0 : $('attachment-is-image-' + id).value ); this.currentImage.ID = id; }, @@ -74,7 +74,7 @@ addLoadEvent( function() { h += "' class='back'>"; } h += "
" - if ( !this.currentImage.isImage ) + if ( 0 == this.currentImage.isImage ) h += "

'>" + this.currentImage.title + "

"; else h += "

" + this.currentImage.title + "

"; @@ -83,7 +83,7 @@ addLoadEvent( function() { h += ""; h += '
' h += "
"; - if ( this.currentImage.isImage ) { + if ( 1 == this.currentImage.isImage ) { h += "'>"; h += "" + this.currentImage.title + ""; h += ""; @@ -152,7 +152,7 @@ addLoadEvent( function() { h += "' class='back'>"; } h += "
" - if ( !this.currentImage.isImage ) + if ( 0 == this.currentImage.isImage ) h += "

'>" + this.currentImage.title + "

"; else h += "

" + this.currentImage.title + "

"; @@ -161,7 +161,7 @@ addLoadEvent( function() { h += ""; h += '
' h += "
"; - if ( this.currentImage.isImage ) { + if ( 1 == this.currentImage.isImage ) { h += "'>"; h += "" + this.currentImage.title + ""; h += ""; @@ -230,7 +230,7 @@ addLoadEvent( function() { displayEl = $A(document.forms.uploadoptions.elements.display).detect( function(i) { return i.checked; } ) if ( displayEl ) display = displayEl.value; - else if ( this.currentImage.isImage ) + else if ( 1 == this.currentImage.isImage ) display = 'full'; if ( 'none' != link ) -- cgit