Strip trailing whitespace

git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-12-09 18:03:31 +00:00
parent f0f4bd82b2
commit baaaa352ba
96 changed files with 336 additions and 336 deletions

View File

@@ -7,7 +7,7 @@ jQuery(function($) {
var name = $("<span>" + $('name', r).text() + "</span>").html();
var id = $('cat', r).attr('id');
options[options.length] = new Option(name, id);
addAfter2( r, settings );
}

View File

@@ -142,7 +142,7 @@ jQuery(document).ready( function($) {
$('form.validate').submit( function() { return wpAjax.validateForm( $(this) ); } );
}
// Move .updated and .error alert boxes
// Move .updated and .error alert boxes
$('div.wrap h2 ~ div.updated, div.wrap h2 ~ div.error').addClass('below-h2');
$('div.updated, div.error').not('.below-h2').insertAfter('div.wrap h2:first');
@@ -156,7 +156,7 @@ jQuery(document).ready( function($) {
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right.gif")'});
$('#contextual-help-link-wrap').removeClass('invisible');
$(this).removeClass('screen-options-open');
} else {
$('#show-settings-link').css({'backgroundImage':'url("images/screen-options-right-up.gif")'});
$(this).addClass('screen-options-open');
@@ -164,7 +164,7 @@ jQuery(document).ready( function($) {
});
return false;
});
// help tab
$('#contextual-help-link').click(function () {
if ( ! $('#contextual-help-wrap').hasClass('contextual-help-open') ) {
@@ -239,7 +239,7 @@ showNotice = {
return false;
},
note : function(text) {
alert(text);
}
@@ -248,10 +248,10 @@ showNotice = {
(function($){
// sidebar admin menu
adminMenu = {
init : function() {
$('#adminmenu div.wp-menu-toggle').each( function() {
if ( $(this).siblings('.wp-submenu').length )
if ( $(this).siblings('.wp-submenu').length )
$(this).click(function(){ adminMenu.toggle( $(this).siblings('.wp-submenu') ); });
else
$(this).hide();
@@ -282,7 +282,7 @@ adminMenu = {
if ( $(e).hasClass('wp-has-current-submenu') ) return true; // leave the current parent open
if ( 'o' == v ) $(e).addClass('wp-menu-open');
else if ( 'c' == v ) $(e).removeClass('wp-menu-open');
else if ( 'c' == v ) $(e).removeClass('wp-menu-open');
});
},
@@ -297,7 +297,7 @@ adminMenu = {
return false;
},
fold : function(off) {
if (off) {
$('#wpcontent').removeClass('folded');
@@ -321,14 +321,14 @@ adminMenu = {
sensitivity: 8,
interval: 100
});
}
},
favorites : function() {
$('#favorite-inside').width($('#favorite-actions').width()-4);
$('#favorite-toggle, #favorite-inside').bind( 'mouseenter', function(){$('#favorite-inside').removeClass('slideUp').addClass('slideDown'); setTimeout(function(){if ( $('#favorite-inside').hasClass('slideDown') ) { $('#favorite-inside').slideDown(100); $('#favorite-first').addClass('slide-down'); }}, 200) } );
$('#favorite-toggle, #favorite-inside').bind( 'mouseleave', function(){$('#favorite-inside').removeClass('slideDown').addClass('slideUp'); setTimeout(function(){if ( $('#favorite-inside').hasClass('slideUp') ) { $('#favorite-inside').slideUp(100, function(){ $('#favorite-first').removeClass('slide-down'); } ); }}, 300) } );
}
};
@@ -368,7 +368,7 @@ columns = {
jQuery(document).ready(function($){
if ( 'undefined' != typeof google && google.gears ) return;
var gf = false;
if ( 'undefined' != typeof GearsFactory ) {
gf = new GearsFactory();
@@ -390,6 +390,6 @@ jQuery(document).ready(function($){
}
if ( gf && gf.hasPermission )
return;
$('.turbo-nag').show();
});

View File

@@ -4,7 +4,7 @@ var theList; var theExtraList;
setCommentsList = function() {
var dimAfter = function( r, settings ) {
var c = $('#' + settings.element);
if ( c.is('.unapproved') )
c.find('div.comment_status').html('0')
else

View File

@@ -21,7 +21,7 @@ switchEditors = {
tinyMCE.execCommand("mceAddControl", false, "content");
}
},
saveCallback : function(el, content, body) {
if ( tinyMCE.activeEditor.isHidden() )

View File

@@ -25,7 +25,7 @@ jQuery._farbtastic = function (container, callback) {
fb.radius = 84;
fb.square = 100;
fb.width = 194;
// Fix background PNGs in IE6
if (navigator.appVersion.match(/MSIE [0-6]\./)) {
jQuery('*', e).each(function () {

View File

@@ -49,10 +49,10 @@ inlineEditTax = {
var editRow = $('#inline-edit').clone(true), rowData = $('#inline_'+id);
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
if ( $(t.what+id).hasClass('alternate') )
$(editRow).addClass('alternate');
$(t.what+id).hide().after(editRow);
$(':input[name="name"]', editRow).val( $('.name', rowData).text() );
@@ -105,7 +105,7 @@ inlineEditTax = {
// make ajax request
$.post('admin-ajax.php', params,
function(r) {
$('table.widefat .inline-edit-save .waiting').hide();
if (r) {
@@ -115,7 +115,7 @@ inlineEditTax = {
var row = $(inlineEditTax.what+id);
row.hide();
row.find('.hide-if-no-js').removeClass('hide-if-no-js');
inlineEditTax.addEvents(row);
row.fadeIn();

View File

@@ -12,9 +12,9 @@ function passwordStrength(password,username) {
var symbolSize = 0;
if (password.match(/[0-9]/)) symbolSize +=10;
if (password.match(/[a-z]/)) symbolSize +=26;
if (password.match(/[A-Z]/)) symbolSize +=26;
if (password.match(/[A-Z]/)) symbolSize +=26;
if (password.match(/[^a-zA-Z0-9]/)) symbolSize +=31;
var natLog = Math.log( Math.pow(symbolSize,password.length) );
var score = natLog / Math.LN2;
if (score < 40 ) return badPass

View File

@@ -97,7 +97,7 @@ function tag_press_key( e ) {
jQuery(document).ready( function($) {
tagCloud.init();
// close postboxes that should be closed
jQuery('.if-js-closed').removeClass('if-js-closed').addClass('closed');
@@ -450,6 +450,6 @@ jQuery(document).ready( function($) {
return false;
}
};
})(jQuery);

View File

@@ -15,7 +15,7 @@ wpGears = {
getPermission : function() {
var perm = true;
if ( 'undefined' != typeof google && google.gears ) {
if ( ! google.gears.factory.hasPermission )
perm = google.gears.factory.getPermission( 'WordPress', 'images/logo.gif' );