WordPress.org

Make WordPress Core

Changeset 4381


Ignore:
Timestamp:
10/12/2006 10:16:03 AM (12 years ago)
Author:
markjaquith
Message:

inline uploader link absolution by mdawaffe. fixes #3220

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload-js.php

    r4355 r4381  
    7979            h += "<div id='file-title'>"
    8080            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>";
    8282            else
    8383                h += "<h2>" + this.currentImage.title + "</h2>";
     
    8888            h += "<div id='upload-file-view' class='alignleft'>";
    8989            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'>";
    9191                h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />";
    9292                h += "</a>";
     
    141141            h += "<div id='file-title'>"
    142142            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>";
    144144            else
    145145                h += "<h2>" + this.currentImage.title + "</h2>";
     
    150150            h += "<div id='upload-file-view' class='alignleft'>";
    151151            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'>";
    153153                h += "<img src='" + ( this.currentImage.thumb ? this.currentImage.thumb : this.currentImage.src ) + "' alt='" + this.currentImage.title + "' width='" + this.currentImage.width + "' height='" + this.currentImage.height + "' />";
    154154                h += "</a>";
     
    160160            h += "<table><col /><col class='widefat' /><tr>"
    161161            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>";
    163163            h += "</tr><tr>";
    164164            h += "<th scope='row'><label for='post_title'>Title</label></th>";
Note: See TracChangeset for help on using the changeset viewer.