From a5b29f6db23d18f819bb6676d05863dcd7504eb9 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 6 Oct 2006 07:02:57 +0000 Subject: WP Merge to rev 4349 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@793 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/upload-js.php | 68 ++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 36 deletions(-) (limited to 'wp-admin/upload-js.php') diff --git a/wp-admin/upload-js.php b/wp-admin/upload-js.php index 423ea3b..c03746f 100644 --- a/wp-admin/upload-js.php +++ b/wp-admin/upload-js.php @@ -61,23 +61,22 @@ addLoadEvent( function() { var h = ''; h += "
" - h += "
" - if ( !this.currentImage.thumb ) - h += "

" + this.currentImage.title + "

"; - else - h += "

" + this.currentImage.title + "

"; - h += "[ "; - h += "edit" - h += ' | '; if ( this.ID ) { var params = $H(this.params); params.ID = ''; params.action = ''; - h += "cancel"; + h += "« Back"; } else { - h += "cancel"; + h += "« Back"; } - h += " ]"; + h += "
" + if ( !this.currentImage.thumb ) + h += "

" + this.currentImage.title + "

"; + else + h += "

" + this.currentImage.title + "

"; + h += " — "; + h += "Edit" + h += ""; h += '
' h += "
"; if ( this.currentImage.thumb ) @@ -89,21 +88,21 @@ addLoadEvent( function() { h += "
"; h += ""; if ( this.currentImage.thumb ) { - h += ""; } - h += ""; - h += "
Show"; - h += "
"; - h += ""; + h += "
Show:"; + h += "
"; + h += ""; h += "
Link"; - h += "
"; - h += "
"; - h += ""; + h += "
Link to:"; + h += "
"; + h += "
"; + h += ""; h += "
"; + h += "

"; h += ""; - h += "

"; + h += "

"; h += "
"; h += "
"; @@ -121,23 +120,22 @@ addLoadEvent( function() { if ( this.postID ) action += '&post_id=' + this.postID; h += "
"; - h += "
" - if ( !this.currentImage.thumb ) - h += "

" + this.currentImage.title + "

"; - else - h += "

" + this.currentImage.title + "

"; - h += "[ "; - h += "options" - h += ' | '; if ( this.ID ) { var params = $H(this.params); params.ID = ''; params.action = ''; - h += "cancel"; + h += "« Back"; } else { - h += "cancel"; + h += "« Back"; } - h += " ]"; + h += "
" + if ( !this.currentImage.thumb ) + h += "

" + this.currentImage.title + "

"; + else + h += "

" + this.currentImage.title + "

"; + h += " — "; + h += "Insert" + h += ""; h += '
' h += "
"; if ( this.currentImage.thumb ) @@ -153,13 +151,12 @@ addLoadEvent( function() { h += ""; h += ""; h += ""; - h += ""; + h += ""; h += ""; h += ""; h += ""; h += ""; - h += "
"; - h += ""; + h += "
"; h += "
"; new Insertion.Top('upload-content', h); @@ -223,8 +220,7 @@ addLoadEvent( function() { win.tinyMCE.execCommand('mceInsertContent', false, h); else win.edInsertContent(win.edCanvas, h); - if ( !this.ID ) - this.cancelView(); + this.cancelView(); return false; }, -- cgit