diff --git a/wp-admin/css/wp-admin.dev.css b/wp-admin/css/wp-admin.dev.css index 4eed67961f..35297c15a6 100644 --- a/wp-admin/css/wp-admin.dev.css +++ b/wp-admin/css/wp-admin.dev.css @@ -889,28 +889,21 @@ ul#add-to-blog-users { border-bottom-left-radius: 3px; border-width: 1px; border-style: solid; - border-top: none; - - background-color: #efefef; - border-color: #bbb; } .ui-autocomplete li { margin-bottom: 0; white-space: nowrap; text-align: left; - color: #101010; } .ui-autocomplete li a { display: block; height: 100%; padding: 4px 10px; - color: #333; } .ui-autocomplete li a.ui-state-hover { - background-color: #ddd; cursor: pointer; } diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 37408e1287..b284f05dc2 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -444,14 +444,14 @@ function wp_network_dashboard_right_now() {

- + 'submit_users' ) ); ?>

- + 'submit_sites' ) ); ?>

diff --git a/wp-admin/js/site-search.dev.js b/wp-admin/js/site-search.dev.js index 8c89410887..e47d7a4c99 100644 --- a/wp-admin/js/site-search.dev.js +++ b/wp-admin/js/site-search.dev.js @@ -1,9 +1,11 @@ jQuery( function($) { + var isRTL = !! ( 'undefined' != typeof isRtl && isRtl ); $( '#site-search-input' ).autocomplete({ - source: ajaxurl + '?action=autocomplete-site', - delay: 500, + source: ajaxurl + '?action=autocomplete-site', + delay: 500, minLength: 2, - open: function(e, ui) { $(this).addClass('open'); }, - close: function(e, ui) { $(this).removeClass('open'); } + position: isRTL ? { my: 'right top', at: 'right bottom', offset: '0, -1' } : { offset: '0, -1' }, + open: function(e, ui) { $(this).addClass('open'); }, + close: function(e, ui) { $(this).removeClass('open'); } }); }); diff --git a/wp-admin/js/user-search.dev.js b/wp-admin/js/user-search.dev.js index e8d7fec16f..ce3b63a799 100644 --- a/wp-admin/js/user-search.dev.js +++ b/wp-admin/js/user-search.dev.js @@ -1,27 +1,38 @@ jQuery( function($) { - var id = typeof( current_site_id ) != 'undefined' ? '&site_id=' + current_site_id : ''; + var id = typeof( current_site_id ) != 'undefined' ? '&site_id=' + current_site_id : '', + isRTL = !! ( 'undefined' != typeof isRtl && isRtl ), + position = isRTL ? { my: 'right top', at: 'right bottom', offset: '0, -1' } : { offset: '0, -1' }, + open = function(e, ui) { + $(this).addClass('open'); + }, + close = function(e, ui) { + $(this).removeClass('open'); + }; $( '#adduser-email, #newuser' ).autocomplete({ - source: ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id, - delay: 500, + source: ajaxurl + '?action=autocomplete-user&autocomplete_type=add' + id, + delay: 500, minLength: 2, - open: function(e, ui) { $(this).addClass('open'); }, - close: function(e, ui) { $(this).removeClass('open'); } + position: position, + open: open, + close: close }); $( '#user-search-input' ).autocomplete({ - source: ajaxurl + '?action=autocomplete-user&autocomplete_type=search' + id, - delay: 500, + source: ajaxurl + '?action=autocomplete-user&autocomplete_type=search' + id, + delay: 500, minLength: 2, - open: function(e, ui) { $(this).addClass('open'); }, - close: function(e, ui) { $(this).removeClass('open'); } + position: position, + open: open, + close: close }); $( '#all-user-search-input' ).autocomplete({ - source: ajaxurl + '?action=autocomplete-user&autocomplete_type=search-all' + id, - delay: 500, + source: ajaxurl + '?action=autocomplete-user&autocomplete_type=search-all' + id, + delay: 500, minLength: 2, - open: function(e, ui) { $(this).addClass('open'); }, - close: function(e, ui) { $(this).removeClass('open'); } + position: position, + open: open, + close: close }); });