Changeset 4381
- Timestamp:
- 10/12/2006 10:16:03 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload-js.php
r4355 r4381 79 79 h += "<div id='file-title'>" 80 80 if ( !this.currentImage.isImage ) 81 h += "<h2><a href='" + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>" + this.currentImage.title + "</a></h2>";81 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>" + this.currentImage.title + "</a></h2>"; 82 82 else 83 83 h += "<h2>" + this.currentImage.title + "</h2>"; … … 88 88 h += "<div id='upload-file-view' class='alignleft'>"; 89 89 if ( this.currentImage.isImage ) { 90 h += "<a href='" + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>";90 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>"; 91 91 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; 92 92 h += "</a>"; … … 141 141 h += "<div id='file-title'>" 142 142 if ( !this.currentImage.isImage ) 143 h += "<h2><a href='" + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>" + this.currentImage.title + "</a></h2>";143 h += "<h2><a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>" + this.currentImage.title + "</a></h2>"; 144 144 else 145 145 h += "<h2>" + this.currentImage.title + "</h2>"; … … 150 150 h += "<div id='upload-file-view' class='alignleft'>"; 151 151 if ( this.currentImage.isImage ) { 152 h += "<a href='" + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>";152 h += "<a href='" + this.currentImage.srcBase + this.currentImage.src + "' onclick='return false;' title='Direct link to file'>"; 153 153 h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />"; 154 154 h += "</a>"; … … 160 160 h += "<table><col /><col class='widefat' /><tr>" 161 161 h += "<th scope='row'><label for='url'>URL</label></th>"; 162 h += "<td><input type='text' id='url' class='readonly' value='" + this.currentImage.src + "' readonly='readonly' /></td>";162 h += "<td><input type='text' id='url' class='readonly' value='" + this.currentImage.srcBase + this.currentImage.src + "' readonly='readonly' /></td>"; 163 163 h += "</tr><tr>"; 164 164 h += "<th scope='row'><label for='post_title'>Title</label></th>";
Note: See TracChangeset
for help on using the changeset viewer.