Make WordPress Core


Ignore:
Timestamp:
10/06/2006 01:14:47 AM (20 years ago)
Author:
matt
Message:

Some UI cleanups, changes, and various miscellany.

File:
1 edited

Legend:

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

    r4340 r4349  
    6262
    6363                        h += "<div id='upload-file'>"
    64                         h += "<div id='file-title'>"
    65                         if ( !this.currentImage.thumb )
    66                                 h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>";
    67                         else
    68                                 h += "<h2>" + this.currentImage.title + "</h2>";
    69                         h += "<span>[&nbsp;";
    70                         h += "<a href='#' onclick='theFileList.editView(" + id + ")'>edit</a>"
    71                         h += '&nbsp;|&nbsp;';
    7264                        if ( this.ID ) {
    7365                                var params = $H(this.params);
    7466                                params.ID = '';
    7567                                params.action = '';
    76                                 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "'  title='Browse your files'>cancel</a>";
     68                                h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "'  title='Browse your files' class='back'>&laquo; Back</a>";
    7769                        } else {
    78                                 h += "<a href='#' onclick='theFileList.cancelView()'  title='Browse your files'>cancel</a>";
    79                         }
    80                         h += "&nbsp;]</span>";
     70                                h += "<a href='#' onclick='theFileList.cancelView()'  title='Browse your files' class='back'>&laquo; Back</a>";
     71                        }
     72                        h += "<div id='file-title'>"
     73                        if ( !this.currentImage.thumb )
     74                                h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>";
     75                        else
     76                                h += "<h2>" + this.currentImage.title + "</h2>";
     77                        h += " &#8212; <span>";
     78                        h += "<a href='#' onclick='theFileList.editView(" + id + ")'>Edit</a>"
     79                        h += "</span>";
    8180                        h += '</div>'
    8281                        h += "<div id='upload-file-view' class='alignleft'>";
    … …  
    9089                        h += "<table>";
    9190                        if ( this.currentImage.thumb ) {
    92                                 h += "<tr><th style='padding-bottom:.5em'>Show</th><td style='padding-bottom:.5em'>";
    93                                 h += "<label for='display-thumb'><input type='radio' name='display' id='display-thumb' value='thumb' checked='checked' /> thumbnail</label><br />";
    94                                 h += "<label for='display-full'><input type='radio' name='display' id='display-full' value='full' /> full size</label>";
     91                                h += "<tr><th style='padding-bottom:.5em'>Show:</th><td style='padding-bottom:.5em'>";
     92                                h += "<label for='display-thumb'><input type='radio' name='display' id='display-thumb' value='thumb' checked='checked' /> Thumbnail</label><br />";
     93                                h += "<label for='display-full'><input type='radio' name='display' id='display-full' value='full' /> Full size</label>";
    9594                                h += "</td></tr>";
    9695                        }
    9796
    98                         h += "<tr><th>Link</th><td>";
    99                         h += "<label for='link-file'><input type='radio' name='link' id='link-file' value='file' checked='checked'/> file</label><br />";
    100                         h += "<label for='link-page'><input type='radio' name='link' id='link-page' value='page' /> page</label><br />";
    101                         h += "<label for='link-none'><input type='radio' name='link' id='link-none' value='none' /> none</label>";
     97                        h += "<tr><th>Link to:</th><td>";
     98                        h += "<label for='link-file'><input type='radio' name='link' id='link-file' value='file' checked='checked'/> File</label><br />";
     99                        h += "<label for='link-page'><input type='radio' name='link' id='link-page' value='page' /> Page</label><br />";
     100                        h += "<label for='link-none'><input type='radio' name='link' id='link-none' value='none' /> None</label>";
    102101                        h += "</td></tr>";
    103102
    104                         h += "<tr><td colspan='2'>";
     103                        h += "<tr><td colspan='2'><p class='submit'>";
    105104                        h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='Send to editor &raquo;' />";
    106                         h += "</td></tr></table>";
     105                        h += "</p></td></tr></table>";
    107106                        h += "</form>";
    108107
    … …  
    122121                                action += '&amp;post_id=' + this.postID;
    123122                        h += "<form id='upload-file' method='post' action='" + action + "'>";
    124                         h += "<div id='file-title'>"
    125                         if ( !this.currentImage.thumb )
    126                                 h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>";
    127                         else
    128                                 h += "<h2>" + this.currentImage.title + "</h2>";
    129                         h += "<span>[&nbsp;";
    130                         h += "<a href='#' onclick='theFileList.imageView(" + id + ")'>options</a>"
    131                         h += '&nbsp;|&nbsp;';
    132123                        if ( this.ID ) {
    133124                                var params = $H(this.params);
    134125                                params.ID = '';
    135126                                params.action = '';
    136                                 h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "'  title='Browse your files'>cancel</a>";
     127                                h += "<a href='" + this.urlData[0] + '?' + params.toQueryString() + "'  title='Browse your files' class='back'>&laquo; Back</a>";
    137128                        } else {
    138                                 h += "<a href='#' onclick='theFileList.cancelView()'  title='Browse your files'>cancel</a>";
    139                         }
    140                         h += "&nbsp;]</span>";
     129                                h += "<a href='#' onclick='theFileList.cancelView()'  title='Browse your files' class='back'>&laquo; Back</a>";
     130                        }
     131                        h += "<div id='file-title'>"
     132                        if ( !this.currentImage.thumb )
     133                                h += "<h2><a href='" + this.currentImage.src + "' title='Direct link to file'>" + this.currentImage.title + "</a></h2>";
     134                        else
     135                                h += "<h2>" + this.currentImage.title + "</h2>";
     136                        h += " &#8212; <span>";
     137                        h += "<a href='#' onclick='theFileList.imageView(" + id + ")'>Insert</a>"
     138                        h += "</span>";
    141139                        h += '</div>'
    142140                        h += "<div id='upload-file-view' class='alignleft'>";
    … …  
    154152                        h += "<th scope='row'><label for='post_content'>Description:</label></th>";
    155153                        h += "<td><textarea name='post_content' id='post_content'>" + this.currentImage.description + "</textarea></td>";
    156                         h += "</tr><tr id='buttons'><th></th><td>";
     154                        h += "</tr><tr id='buttons'><th><input type='button' name='delete' class='delete button' value='Delete' onclick='theFileList.deleteFile(" + id + ");' /></th><td>";
    157155                        h += "<input type='hidden' name='from_tab' value='" + this.tab + "' />";
    158156                        h += "<input type='hidden' name='action' id='action-value' value='save' />";
    159157                        h += "<input type='hidden' name='ID' value='" + id + "' />";
    160158                        h += "<input type='hidden' name='_wpnonce' value='" + this.nonce + "' />";
    161                         h += "<div class='submit'><input type='submit' value='Save' />";
    162                         h += "<input type='button' name='delete' class='delete' value='Delete' onclick='theFileList.deleteFile(" + id + ");' />";
     159                        h += "<div class='submit'><input type='submit' value='Save &raquo;' />";
    163160                        h += "</div></td></tr></table></form>";
    164161
Note: See TracChangeset for help on using the changeset viewer.