Changeset 4349 for trunk/wp-admin/upload-js.php
- Timestamp:
- 10/06/2006 01:14:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload-js.php
r4340 r4349 62 62 63 63 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 else68 h += "<h2>" + this.currentImage.title + "</h2>";69 h += "<span>[ ";70 h += "<a href='#' onclick='theFileList.editView(" + id + ")'>edit</a>"71 h += ' | ';72 64 if ( this.ID ) { 73 65 var params = $H(this.params); 74 66 params.ID = ''; 75 67 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'>« Back</a>"; 77 69 } else { 78 h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files'>cancel</a>"; 79 } 80 h += " ]</span>"; 70 h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files' class='back'>« 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 += " — <span>"; 78 h += "<a href='#' onclick='theFileList.editView(" + id + ")'>Edit</a>" 79 h += "</span>"; 81 80 h += '</div>' 82 81 h += "<div id='upload-file-view' class='alignleft'>"; … … 90 89 h += "<table>"; 91 90 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>"; 95 94 h += "</td></tr>"; 96 95 } 97 96 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>"; 102 101 h += "</td></tr>"; 103 102 104 h += "<tr><td colspan='2'> ";103 h += "<tr><td colspan='2'><p class='submit'>"; 105 104 h += "<input type='button' class='button' name='send' onclick='theFileList.sendToEditor(" + id + ")' value='Send to editor »' />"; 106 h += "</ td></tr></table>";105 h += "</p></td></tr></table>"; 107 106 h += "</form>"; 108 107 … … 122 121 action += '&post_id=' + this.postID; 123 122 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 else128 h += "<h2>" + this.currentImage.title + "</h2>";129 h += "<span>[ ";130 h += "<a href='#' onclick='theFileList.imageView(" + id + ")'>options</a>"131 h += ' | ';132 123 if ( this.ID ) { 133 124 var params = $H(this.params); 134 125 params.ID = ''; 135 126 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'>« Back</a>"; 137 128 } else { 138 h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files'>cancel</a>"; 139 } 140 h += " ]</span>"; 129 h += "<a href='#' onclick='theFileList.cancelView()' title='Browse your files' class='back'>« 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 += " — <span>"; 137 h += "<a href='#' onclick='theFileList.imageView(" + id + ")'>Insert</a>" 138 h += "</span>"; 141 139 h += '</div>' 142 140 h += "<div id='upload-file-view' class='alignleft'>"; … … 154 152 h += "<th scope='row'><label for='post_content'>Description:</label></th>"; 155 153 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>"; 157 155 h += "<input type='hidden' name='from_tab' value='" + this.tab + "' />"; 158 156 h += "<input type='hidden' name='action' id='action-value' value='save' />"; 159 157 h += "<input type='hidden' name='ID' value='" + id + "' />"; 160 158 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 »' />"; 163 160 h += "</div></td></tr></table></form>"; 164 161
Note: See TracChangeset
for help on using the changeset viewer.