diff --git a/wp-admin/css/colors-fresh.css b/wp-admin/css/colors-fresh.css
index 3599c400d1..afd6154f7c 100644
--- a/wp-admin/css/colors-fresh.css
+++ b/wp-admin/css/colors-fresh.css
@@ -86,7 +86,11 @@ ul.widget-control-list div.widget-control-actions {
}
div.ui-tabs-panel {
- border-color: #cee1ef;
+ border-color: #f1f1f1;
+}
+
+ul#category-tabs li.ui-tabs-selected {
+ background-color: #f1f1f1;
}
input.disabled,
@@ -138,7 +142,6 @@ strong .post-com-count span {
background-color: #2583ad;
}
-#post-body ul#category-tabs li.ui-tabs-selected,
#login form .submit input, .search-box .button,
#ed_reply_toolbar {
background-color: #cee1ef !important;
diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php
index e0a6d7d5a4..f6a3318e4f 100644
--- a/wp-admin/includes/media.php
+++ b/wp-admin/includes/media.php
@@ -773,13 +773,11 @@ function image_link_input_fields($post, $url_type='') {
elseif ( $url_type == 'post' )
$url = $link;
- return "
-
-
-
- \n";
+ return "
+
+
+
+";
}
/**
@@ -1679,13 +1677,13 @@ function type_form_image() {
|
-
+
-
+
-
+
-
+
|
diff --git a/wp-admin/js/post.js b/wp-admin/js/post.js
index cbd97b215d..74e4c665db 100644
--- a/wp-admin/js/post.js
+++ b/wp-admin/js/post.js
@@ -190,6 +190,12 @@ jQuery(document).ready( function($) {
jQuery('#newcat').focus();
return false;
} );
+
+ $('a[href="#categories-all"]').click(function(){deleteUserSetting('cats');});
+ $('a[href="#categories-pop"]').click(function(){setUserSetting('cats','pop');});
+ if ( 'pop' == getUserSetting('cats') )
+ $('a[href="#categories-pop"]').click();
+
jQuery('.categorychecklist .popular-category :checkbox').change( syncChecks ).filter( ':checked' ).change();
var stamp = $('#timestamp').html();
var visibility = $('#post-visibility-display').html();
diff --git a/wp-includes/js/swfupload/handlers.js b/wp-includes/js/swfupload/handlers.js
index 1f7fee714d..00981cb309 100644
--- a/wp-includes/js/swfupload/handlers.js
+++ b/wp-includes/js/swfupload/handlers.js
@@ -247,3 +247,36 @@ function uploadError(fileObj, error_code, message) {
wpQueueError(swfuploadL10n.security_error);
}
}
+
+// remember the last used image size, alignment and url
+jQuery(document).ready(function($){
+ var align = getUserSetting('align') || '', imgsize = getUserSetting('imgsize') || '';
+
+ $('tr.align input[type="radio"]').click(function(){
+ setUserSetting('align', $(this).val());
+ }).filter(function(){
+ if ( $(this).val() == align )
+ return true;
+ return false;
+ }).attr('checked','checked');
+
+ $('tr.image-size input[type="radio"]').click(function(){
+ setUserSetting('imgsize', $(this).val());
+ }).filter(function(){
+ if ( $(this).attr('disabled') || $(this).val() != imgsize )
+ return false;
+ return true;
+ }).attr('checked','checked');
+
+ $('tr.url button').click(function(){
+ var c = this.className || '';
+ c = c.replace(/.*?(url[^ '"]+).*/, '$1');
+ if (c) setUserSetting('urlbutton', c);
+ $(this).siblings('.urlfield').val( $(this).attr('title') );
+ });
+
+ $('tr.url .urlfield').each(function(){
+ var b = getUserSetting('urlbutton');
+ $(this).val( $(this).siblings('button.'+b).attr('title') );
+ });
+});