Ticket #3220: 3220.diff
| File 3220.diff, 3.1 KB (added by , 20 years ago) |
|---|
-
wp-admin/upload-js.php
78 78 } 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>"; 84 84 h += " — <span>"; … … 87 87 h += '</div>' 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>"; 93 93 } else … … 140 140 } 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>"; 146 146 h += " — <span>"; … … 149 149 h += '</div>' 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>"; 155 155 } else … … 159 159 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>"; 165 165 h += "<td><input type='text' id='post_title' name='post_title' value='" + this.currentImage.title + "' /></td>";
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)