Changeset 4748 for trunk/wp-admin/upload-js.php
- Timestamp:
- 01/16/2007 06:10:54 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upload-js.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload-js.php
r4746 r4748 57 57 this.currentImage.height = false; 58 58 } 59 this.currentImage.isImage = ( 0 == id ? '': $('attachment-is-image-' + id).value );59 this.currentImage.isImage = ( 0 == id ? 0 : $('attachment-is-image-' + id).value ); 60 60 this.currentImage.ID = id; 61 61 }, … … 75 75 } 76 76 h += "<div id='file-title'>" 77 if ( !this.currentImage.isImage )77 if ( 0 == this.currentImage.isImage ) 78 78 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo attribute_escape(__('Direct link to file')); ?>'>" + this.currentImage.title + "</a></h2>"; 79 79 else … … 84 84 h += '</div>' 85 85 h += "<div id='upload-file-view' class='alignleft'>"; 86 if ( this.currentImage.isImage ) {86 if ( 1 == this.currentImage.isImage ) { 87 87 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo attribute_escape(__('Direct link to file')); ?>'>"; 88 88 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; … … 153 153 } 154 154 h += "<div id='file-title'>" 155 if ( !this.currentImage.isImage )155 if ( 0 == this.currentImage.isImage ) 156 156 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo attribute_escape(__('Direct link to file')); ?>'>" + this.currentImage.title + "</a></h2>"; 157 157 else … … 162 162 h += '</div>' 163 163 h += "<div id='upload-file-view' class='alignleft'>"; 164 if ( this.currentImage.isImage ) {164 if ( 1 == this.currentImage.isImage ) { 165 165 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='<?php echo wp_specialchars(__('Direct link to file')); ?>'>"; 166 166 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; … … 231 231 if ( displayEl ) 232 232 display = displayEl.value; 233 else if ( this.currentImage.isImage )233 else if ( 1 == this.currentImage.isImage ) 234 234 display = 'full'; 235 235
Note: See TracChangeset
for help on using the changeset viewer.