Set eol style
git-svn-id: https://develop.svn.wordpress.org/trunk@11449 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
76eabb6d25
commit
2e127ee264
|
@ -1,42 +1,42 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Defines the Gears manifest file for Google Gears offline storage.
|
* Defines the Gears manifest file for Google Gears offline storage.
|
||||||
*
|
*
|
||||||
* @package WordPress
|
* @package WordPress
|
||||||
* @subpackage Administration
|
* @subpackage Administration
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disable error reporting
|
* Disable error reporting
|
||||||
*
|
*
|
||||||
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
|
* Set this to error_reporting( E_ALL ) or error_reporting( E_ALL | E_STRICT ) for debugging
|
||||||
*/
|
*/
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
|
||||||
/** Set ABSPATH for execution */
|
/** Set ABSPATH for execution */
|
||||||
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
|
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
|
||||||
|
|
||||||
require(ABSPATH . '/wp-admin/includes/manifest.php');
|
require(ABSPATH . '/wp-admin/includes/manifest.php');
|
||||||
|
|
||||||
$files = get_manifest();
|
$files = get_manifest();
|
||||||
|
|
||||||
header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
|
header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );
|
||||||
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
|
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' );
|
||||||
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
|
header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );
|
||||||
header( 'Pragma: no-cache' );
|
header( 'Pragma: no-cache' );
|
||||||
header( 'Content-Type: text/cache-manifest; charset=UTF-8' );
|
header( 'Content-Type: text/cache-manifest; charset=UTF-8' );
|
||||||
?>
|
?>
|
||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
#
|
#
|
||||||
# Version: <?php echo $man_version; ?>
|
# Version: <?php echo $man_version; ?>
|
||||||
#
|
#
|
||||||
<?php
|
<?php
|
||||||
foreach ( $files as $file ) {
|
foreach ( $files as $file ) {
|
||||||
// If version is not set, just output the file
|
// If version is not set, just output the file
|
||||||
if ( !isset($file[1]) )
|
if ( !isset($file[1]) )
|
||||||
echo $file[0] . "\n";
|
echo $file[0] . "\n";
|
||||||
// If ver is set but ignoreQuery is not, output file with ver tacked on
|
// If ver is set but ignoreQuery is not, output file with ver tacked on
|
||||||
else
|
else
|
||||||
echo $file[0] . '?' . $file[1] . "\n";
|
echo $file[0] . '?' . $file[1] . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,52 +1,52 @@
|
||||||
(function($){
|
(function($){
|
||||||
|
|
||||||
function check_pass_strength() {
|
function check_pass_strength() {
|
||||||
var pass = $('#pass1').val(), user = $('#user_login').val(), strength;
|
var pass = $('#pass1').val(), user = $('#user_login').val(), strength;
|
||||||
|
|
||||||
$('#pass-strength-result').removeClass('short bad good strong');
|
$('#pass-strength-result').removeClass('short bad good strong');
|
||||||
if ( ! pass ) {
|
if ( ! pass ) {
|
||||||
$('#pass-strength-result').html( pwsL10n.empty );
|
$('#pass-strength-result').html( pwsL10n.empty );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
strength = passwordStrength(pass, user);
|
strength = passwordStrength(pass, user);
|
||||||
|
|
||||||
switch ( strength ) {
|
switch ( strength ) {
|
||||||
case 2:
|
case 2:
|
||||||
$('#pass-strength-result').addClass('bad').html( pwsL10n['bad'] );
|
$('#pass-strength-result').addClass('bad').html( pwsL10n['bad'] );
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
$('#pass-strength-result').addClass('good').html( pwsL10n['good'] );
|
$('#pass-strength-result').addClass('good').html( pwsL10n['good'] );
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
$('#pass-strength-result').addClass('strong').html( pwsL10n['strong'] );
|
$('#pass-strength-result').addClass('strong').html( pwsL10n['strong'] );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
$('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
|
$('#pass-strength-result').addClass('short').html( pwsL10n['short'] );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready( function() {
|
$(document).ready( function() {
|
||||||
$('#pass1').val('').keyup( check_pass_strength );
|
$('#pass1').val('').keyup( check_pass_strength );
|
||||||
$('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')});
|
$('.color-palette').click(function(){$(this).siblings('input[name=admin_color]').attr('checked', 'checked')});
|
||||||
$('#nickname').blur(function(){
|
$('#nickname').blur(function(){
|
||||||
var str = $(this).val() || $('#user_login').val();
|
var str = $(this).val() || $('#user_login').val();
|
||||||
$('#display_name #display_nickname').val(str).html(str);
|
$('#display_name #display_nickname').val(str).html(str);
|
||||||
});
|
});
|
||||||
$('#first_name, #last_name').blur(function(){
|
$('#first_name, #last_name').blur(function(){
|
||||||
var first = $('#first_name').val(), last = $('#last_name').val();
|
var first = $('#first_name').val(), last = $('#last_name').val();
|
||||||
$('#display_firstname, #display_lastname, #display_firstlast, #display_lastfirst').remove();
|
$('#display_firstname, #display_lastname, #display_firstlast, #display_lastfirst').remove();
|
||||||
if ( first && last ) {
|
if ( first && last ) {
|
||||||
$('#display_name').append('<option id="display_firstname" value="' + first + '">' + first + '</option>' +
|
$('#display_name').append('<option id="display_firstname" value="' + first + '">' + first + '</option>' +
|
||||||
'<option id="display_lastname" value="' + last + '">' + last + '</option>' +
|
'<option id="display_lastname" value="' + last + '">' + last + '</option>' +
|
||||||
'<option id="display_firstlast" value="' + first + ' ' + last + '">' + first + ' ' + last + '</option>' +
|
'<option id="display_firstlast" value="' + first + ' ' + last + '">' + first + ' ' + last + '</option>' +
|
||||||
'<option id="display_lastfirst" value="' + last + ' ' + first + '">' + last + ' ' + first + '</option>');
|
'<option id="display_lastfirst" value="' + last + ' ' + first + '">' + last + ' ' + first + '</option>');
|
||||||
} else if ( first && !last ) {
|
} else if ( first && !last ) {
|
||||||
$('#display_name').append('<option id="display_firstname" value="' + first + '">' + first + '</option>');
|
$('#display_name').append('<option id="display_firstname" value="' + first + '">' + first + '</option>');
|
||||||
} else if ( !first && last ) {
|
} else if ( !first && last ) {
|
||||||
$('#display_name').append('<option id="display_lastname" value="' + last + '">' + last + '</option>');
|
$('#display_name').append('<option id="display_lastname" value="' + last + '">' + last + '</option>');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,12 +1,13 @@
|
||||||
/*
|
/*
|
||||||
* jQuery UI Selectable 1.7.1
|
* jQuery UI Selectable 1.7.1
|
||||||
*
|
*
|
||||||
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
|
* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about)
|
||||||
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
* Dual licensed under the MIT (MIT-LICENSE.txt)
|
||||||
* and GPL (GPL-LICENSE.txt) licenses.
|
* and GPL (GPL-LICENSE.txt) licenses.
|
||||||
*
|
*
|
||||||
* http://docs.jquery.com/UI/Selectables
|
* http://docs.jquery.com/UI/Selectables
|
||||||
*
|
*
|
||||||
* Depends:
|
* Depends:
|
||||||
* ui.core.js
|
* ui.core.js
|
||||||
*/
(function(a){a.widget("ui.selectable",a.extend({},a.ui.mouse,{_init:function(){var b=this;this.element.addClass("ui-selectable");this.dragged=false;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]);c.each(function(){var d=a(this);var e=d.offset();a.data(this,"selectable-item",{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=c.addClass("ui-selectee");this._mouseInit();this.helper=a(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger("start",d);a(c.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var e=a.data(this,"selectable-item");e.startselected=true;if(!d.metaKey){e.$element.removeClass("ui-selected");e.selected=false;e.$element.addClass("ui-unselecting");e.unselecting=true;b._trigger("unselecting",d,{unselecting:e.element})}});a(d.target).parents().andSelf().each(function(){var e=a.data(this,"selectable-item");if(e){e.$element.removeClass("ui-unselecting").addClass("ui-selecting");e.unselecting=false;e.selecting=true;e.selected=true;b._trigger("selecting",d,{selecting:e.element});return false}})},_mouseDrag:function(i){var c=this;this.dragged=true;if(this.options.disabled){return}var e=this.options;var d=this.opos[0],h=this.opos[1],b=i.pageX,g=i.pageY;if(d>b){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.right<d||j.top>g||j.bottom<h))}else{if(e.tolerance=="fit"){k=(j.left>d&&j.right<b&&j.top>h&&j.bottom<g)}}if(k){if(j.selected){j.$element.removeClass("ui-selected");j.selected=false}if(j.unselecting){j.$element.removeClass("ui-unselecting");j.unselecting=false}if(!j.selecting){j.$element.addClass("ui-selecting");j.selecting=true;c._trigger("selecting",i,{selecting:j.element})}}else{if(j.selecting){if(i.metaKey&&j.startselected){j.$element.removeClass("ui-selecting");j.selecting=false;j.$element.addClass("ui-selected");j.selected=true}else{j.$element.removeClass("ui-selecting");j.selecting=false;if(j.startselected){j.$element.addClass("ui-unselecting");j.unselecting=true}c._trigger("unselecting",i,{unselecting:j.element})}}if(j.selected){if(!i.metaKey&&!j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;c._trigger("unselecting",i,{unselecting:j.element})}}}});return false},_mouseStop:function(d){var b=this;this.dragged=false;var c=this.options;a(".ui-unselecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;b._trigger("unselected",d,{unselected:e.element})});a(".ui-selecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;b._trigger("selected",d,{selected:e.element})});this._trigger("stop",d);this.helper.remove();return false}}));a.extend(a.ui.selectable,{version:"1.7.1",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);
|
*/
|
||||||
|
(function(a){a.widget("ui.selectable",a.extend({},a.ui.mouse,{_init:function(){var b=this;this.element.addClass("ui-selectable");this.dragged=false;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]);c.each(function(){var d=a(this);var e=d.offset();a.data(this,"selectable-item",{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=c.addClass("ui-selectee");this._mouseInit();this.helper=a(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger("start",d);a(c.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var e=a.data(this,"selectable-item");e.startselected=true;if(!d.metaKey){e.$element.removeClass("ui-selected");e.selected=false;e.$element.addClass("ui-unselecting");e.unselecting=true;b._trigger("unselecting",d,{unselecting:e.element})}});a(d.target).parents().andSelf().each(function(){var e=a.data(this,"selectable-item");if(e){e.$element.removeClass("ui-unselecting").addClass("ui-selecting");e.unselecting=false;e.selecting=true;e.selected=true;b._trigger("selecting",d,{selecting:e.element});return false}})},_mouseDrag:function(i){var c=this;this.dragged=true;if(this.options.disabled){return}var e=this.options;var d=this.opos[0],h=this.opos[1],b=i.pageX,g=i.pageY;if(d>b){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.right<d||j.top>g||j.bottom<h))}else{if(e.tolerance=="fit"){k=(j.left>d&&j.right<b&&j.top>h&&j.bottom<g)}}if(k){if(j.selected){j.$element.removeClass("ui-selected");j.selected=false}if(j.unselecting){j.$element.removeClass("ui-unselecting");j.unselecting=false}if(!j.selecting){j.$element.addClass("ui-selecting");j.selecting=true;c._trigger("selecting",i,{selecting:j.element})}}else{if(j.selecting){if(i.metaKey&&j.startselected){j.$element.removeClass("ui-selecting");j.selecting=false;j.$element.addClass("ui-selected");j.selected=true}else{j.$element.removeClass("ui-selecting");j.selecting=false;if(j.startselected){j.$element.addClass("ui-unselecting");j.unselecting=true}c._trigger("unselecting",i,{unselecting:j.element})}}if(j.selected){if(!i.metaKey&&!j.startselected){j.$element.removeClass("ui-selected");j.selected=false;j.$element.addClass("ui-unselecting");j.unselecting=true;c._trigger("unselecting",i,{unselecting:j.element})}}}});return false},_mouseStop:function(d){var b=this;this.dragged=false;var c=this.options;a(".ui-unselecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-unselecting");e.unselecting=false;e.startselected=false;b._trigger("unselected",d,{unselected:e.element})});a(".ui-selecting",this.element[0]).each(function(){var e=a.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected");e.selecting=false;e.selected=true;e.startselected=true;b._trigger("selected",d,{selected:e.element})});this._trigger("stop",d);this.helper.remove();return false}}));a.extend(a.ui.selectable,{version:"1.7.1",defaults:{appendTo:"body",autoRefresh:true,cancel:":input,option",delay:0,distance:0,filter:"*",tolerance:"touch"}})})(jQuery);
|
Loading…
Reference in New Issue