From d514a0d6b2b289e1287b905eecd875d8baaf03c2 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 24 May 2009 23:39:56 +0000 Subject: [PATCH] Set eol style git-svn-id: http://svn.automattic.com/wordpress/trunk@11449 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/cache-manifest.php | 84 ++++++++++---------- wp-admin/js/user-profile.dev.js | 104 ++++++++++++------------- wp-includes/js/jquery/ui.droppable.js | 27 +++---- wp-includes/js/jquery/ui.selectable.js | 25 +++--- 4 files changed, 121 insertions(+), 119 deletions(-) diff --git a/wp-admin/cache-manifest.php b/wp-admin/cache-manifest.php index 9965678336..cb5d41226b 100644 --- a/wp-admin/cache-manifest.php +++ b/wp-admin/cache-manifest.php @@ -1,42 +1,42 @@ - -CACHE MANIFEST -# -# Version: -# - +CACHE MANIFEST +# +# Version: +# +' + first + '' + - '' + - '' + - ''); - } else if ( first && !last ) { - $('#display_name').append(''); - } else if ( !first && last ) { - $('#display_name').append(''); - } - }); - }); - -})(jQuery); +(function($){ + + function check_pass_strength() { + var pass = $('#pass1').val(), user = $('#user_login').val(), strength; + + $('#pass-strength-result').removeClass('short bad good strong'); + if ( ! pass ) { + $('#pass-strength-result').html( pwsL10n.empty ); + return; + } + + strength = passwordStrength(pass, user); + + switch ( strength ) { + case 2: + $('#pass-strength-result').addClass('bad').html( pwsL10n['bad'] ); + break; + case 3: + $('#pass-strength-result').addClass('good').html( pwsL10n['good'] ); + break; + case 4: + $('#pass-strength-result').addClass('strong').html( pwsL10n['strong'] ); + break; + default: + $('#pass-strength-result').addClass('short').html( pwsL10n['short'] ); + } + } + + $(document).ready( function() { + $('#pass1').val('').keyup( check_pass_strength ); + $('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')}); + $('#nickname').blur(function(){ + var str = $(this).val() || $('#user_login').val(); + $('#display_name #display_nickname').val(str).html(str); + }); + $('#first_name, #last_name').blur(function(){ + var first = $('#first_name').val(), last = $('#last_name').val(); + $('#display_firstname, #display_lastname, #display_firstlast, #display_lastfirst').remove(); + if ( first && last ) { + $('#display_name').append('' + + '' + + '' + + ''); + } else if ( first && !last ) { + $('#display_name').append(''); + } else if ( !first && last ) { + $('#display_name').append(''); + } + }); + }); + +})(jQuery); diff --git a/wp-includes/js/jquery/ui.droppable.js b/wp-includes/js/jquery/ui.droppable.js index 12b4e5f5aa..58459611ab 100644 --- a/wp-includes/js/jquery/ui.droppable.js +++ b/wp-includes/js/jquery/ui.droppable.js @@ -1,13 +1,14 @@ -/* - * jQuery UI Droppable 1.7.1 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Droppables - * - * Depends: - * ui.core.js - * ui.draggable.js - */ (function(a){a.widget("ui.droppable",{_init:function(){var c=this.options,b=c.accept;this.isover=0;this.isout=1;this.options.accept=this.options.accept&&a.isFunction(this.options.accept)?this.options.accept:function(e){return e.is(b)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[this.options.scope]=a.ui.ddmanager.droppables[this.options.scope]||[];a.ui.ddmanager.droppables[this.options.scope].push(this);(this.options.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var b=a.ui.ddmanager.droppables[this.options.scope];for(var c=0;c=p&&n<=k)||(m>=p&&m<=k)||(nk))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(ec));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d=p&&n<=k)||(m>=p&&m<=k)||(nk))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(ec));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;db){var f=b;b=d;d=f}if(h>g){var f=g;g=h;h=f}this.helper.css({left:d,top:h,width:b-d,height:g-h});this.selectees.each(function(){var j=a.data(this,"selectable-item");if(!j||j.element==c.element[0]){return}var k=false;if(e.tolerance=="touch"){k=(!(j.left>b||j.rightg||j.bottomd&&j.righth&&j.bottomb){var f=b;b=d;d=f}if(h>g){var f=g;g=h;h=f}this.helper.css({left:d,top:h,width:b-d,height:g-h});this.selectees.each(function(){var j=a.data(this,"selectable-item");if(!j||j.element==c.element[0]){return}var k=false;if(e.tolerance=="touch"){k=(!(j.left>b||j.rightg||j.bottomd&&j.righth&&j.bottom