Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# master

# 5.0.1

* Update to jQuery UI 1.11.1

# 5.0.0

* Update to jQuery UI 1.11.0
Expand Down
1 change: 1 addition & 0 deletions VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

| Gem | jQuery UI |
|--------|-----------|
| 5.0.1 | 1.11.1 |
| 5.0.0 | 1.11.0 |
| 4.2.1 | 1.10.4 |
| 4.2.0 | 1.10.3 |
Expand Down
Binary file removed app/assets/images/jquery-ui/animated-overlay.gif
Binary file not shown.
4 changes: 2 additions & 2 deletions app/assets/javascripts/jquery-ui/accordion.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//= require jquery-ui/widget

/*!
* jQuery UI Accordion 1.11.0
* jQuery UI Accordion 1.11.1
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
Expand All @@ -28,7 +28,7 @@
}(function( $ ) {

return $.widget( "ui.accordion", {
version: "1.11.0",
version: "1.11.1",
options: {
active: 0,
animate: {},
Expand Down
10 changes: 6 additions & 4 deletions app/assets/javascripts/jquery-ui/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//= require jquery-ui/position

/*!
* jQuery UI Autocomplete 1.11.0
* jQuery UI Autocomplete 1.11.1
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
Expand Down Expand Up @@ -32,7 +32,7 @@
}(function( $ ) {

$.widget( "ui.autocomplete", {
version: "1.11.0",
version: "1.11.1",
defaultElement: "<input>",
options: {
appendTo: null,
Expand Down Expand Up @@ -135,7 +135,9 @@ $.widget( "ui.autocomplete", {
break;
case keyCode.ESCAPE:
if ( this.menu.element.is( ":visible" ) ) {
this._value( this.term );
if ( !this.isMultiLine ) {
this._value( this.term );
}
this.close( event );
// Different browsers have different default behavior for escape
// Single press can mean undo or clear
Expand Down Expand Up @@ -271,7 +273,7 @@ $.widget( "ui.autocomplete", {

// Announce the value in the liveRegion
label = ui.item.attr( "aria-label" ) || item.value;
if ( label && jQuery.trim( label ).length ) {
if ( label && $.trim( label ).length ) {
this.liveRegion.children().hide();
$( "<div>" ).text( label ).appendTo( this.liveRegion );
}
Expand Down
6 changes: 3 additions & 3 deletions app/assets/javascripts/jquery-ui/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//= require jquery-ui/widget

/*!
* jQuery UI Button 1.11.0
* jQuery UI Button 1.11.1
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
Expand Down Expand Up @@ -55,7 +55,7 @@ var lastActive,
};

$.widget( "ui.button", {
version: "1.11.0",
version: "1.11.1",
defaultElement: "<button>",
options: {
disabled: null,
Expand Down Expand Up @@ -351,7 +351,7 @@ $.widget( "ui.button", {
});

$.widget( "ui.buttonset", {
version: "1.11.0",
version: "1.11.1",
options: {
items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
},
Expand Down
11 changes: 6 additions & 5 deletions app/assets/javascripts/jquery-ui/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery UI Core 1.11.0
* jQuery UI Core 1.11.1
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
Expand All @@ -24,7 +24,7 @@
$.ui = $.ui || {};

$.extend( $.ui, {
version: "1.11.0",
version: "1.11.1",

keyCode: {
BACKSPACE: 8,
Expand All @@ -48,15 +48,16 @@ $.extend( $.ui, {

// plugins
$.fn.extend({
scrollParent: function() {
scrollParent: function( includeHidden ) {
var position = this.css( "position" ),
excludeStaticParent = position === "absolute",
overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
scrollParent = this.parents().filter( function() {
var parent = $( this );
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
return false;
}
return (/(auto|scroll)/).test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + parent.css( "overflow-x" ) );
}).eq( 0 );

return position === "fixed" || !scrollParent.length ? $( this[ 0 ].ownerDocument || document ) : scrollParent;
Expand Down Expand Up @@ -93,7 +94,7 @@ function focusable( element, isTabIndexNotNaN ) {
if ( !element.href || !mapName || map.nodeName.toLowerCase() !== "map" ) {
return false;
}
img = $( "img[usemap=#" + mapName + "]" )[0];
img = $( "img[usemap='#" + mapName + "']" )[ 0 ];
return !!img && visible( img );
}
return ( /input|select|textarea|button|object/.test( nodeName ) ?
Expand Down
43 changes: 25 additions & 18 deletions app/assets/javascripts/jquery-ui/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//= require jquery-ui/core

/*!
* jQuery UI Datepicker 1.11.0
* jQuery UI Datepicker 1.11.1
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
Expand All @@ -25,7 +25,7 @@
}
}(function( $ ) {

$.extend($.ui, { datepicker: { version: "1.11.0" } });
$.extend($.ui, { datepicker: { version: "1.11.1" } });

var datepicker_instActive;

Expand Down Expand Up @@ -801,12 +801,16 @@ $.extend(Datepicker.prototype, {
datepicker_instActive = inst; // for delegate hover events
inst.dpDiv.empty().append(this._generateHTML(inst));
this._attachHandlers(inst);
inst.dpDiv.find("." + this._dayOverClass + " a");

var origyearshtml,
numMonths = this._getNumberOfMonths(inst),
cols = numMonths[1],
width = 17;
width = 17,
activeCell = inst.dpDiv.find( "." + this._dayOverClass + " a" );

if ( activeCell.length > 0 ) {
datepicker_handleMouseover.apply( activeCell.get( 0 ) );
}

inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");
if (cols > 1) {
Expand Down Expand Up @@ -1140,7 +1144,8 @@ $.extend(Datepicker.prototype, {
var isDoubled = lookAhead(match),
size = (match === "@" ? 14 : (match === "!" ? 20 :
(match === "y" && isDoubled ? 4 : (match === "o" ? 3 : 2)))),
digits = new RegExp("^\\d{1," + size + "}"),
minSize = (match === "y" ? size : 1),
digits = new RegExp("^\\d{" + minSize + "," + size + "}"),
num = value.substring(iValue).match(digits);
if (!num) {
throw "Missing number at position " + iValue;
Expand Down Expand Up @@ -2001,18 +2006,20 @@ function datepicker_bindHover(dpDiv) {
$(this).removeClass("ui-datepicker-next-hover");
}
})
.delegate(selector, "mouseover", function(){
if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline ? dpDiv.parent()[0] : datepicker_instActive.input[0])) {
$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
$(this).addClass("ui-state-hover");
if (this.className.indexOf("ui-datepicker-prev") !== -1) {
$(this).addClass("ui-datepicker-prev-hover");
}
if (this.className.indexOf("ui-datepicker-next") !== -1) {
$(this).addClass("ui-datepicker-next-hover");
}
}
});
.delegate( selector, "mouseover", datepicker_handleMouseover );
}

function datepicker_handleMouseover() {
if (!$.datepicker._isDisabledDatepicker( datepicker_instActive.inline? datepicker_instActive.dpDiv.parent()[0] : datepicker_instActive.input[0])) {
$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");
$(this).addClass("ui-state-hover");
if (this.className.indexOf("ui-datepicker-prev") !== -1) {
$(this).addClass("ui-datepicker-prev-hover");
}
if (this.className.indexOf("ui-datepicker-next") !== -1) {
$(this).addClass("ui-datepicker-next-hover");
}
}
}

/* jQuery extend now ignores nulls! */
Expand Down Expand Up @@ -2068,7 +2075,7 @@ $.fn.datepicker = function(options){
$.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
$.datepicker.version = "1.11.0";
$.datepicker.version = "1.11.1";

return $.datepicker;

Expand Down
27 changes: 22 additions & 5 deletions app/assets/javascripts/jquery-ui/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//= require jquery-ui/resizable

/*!
* jQuery UI Dialog 1.11.0
* jQuery UI Dialog 1.11.1
* http://jqueryui.com
*
* Copyright 2014 jQuery Foundation and other contributors
Expand Down Expand Up @@ -37,7 +37,7 @@
}(function( $ ) {

return $.widget( "ui.dialog", {
version: "1.11.0",
version: "1.11.1",
options: {
appendTo: "body",
autoOpen: true,
Expand Down Expand Up @@ -267,11 +267,24 @@ return $.widget( "ui.dialog", {
this._position();
this._createOverlay();
this._moveToTop( null, true );

// Ensure the overlay is moved to the top with the dialog, but only when
// opening. The overlay shouldn't move after the dialog is open so that
// modeless dialogs opened after the modal dialog stack properly.
if ( this.overlay ) {
this.overlay.css( "z-index", this.uiDialog.css( "z-index" ) - 1 );
}

this._show( this.uiDialog, this.options.show, function() {
that._focusTabbable();
that._trigger( "focus" );
});

// Track the dialog immediately upon openening in case a focus event
// somehow occurs outside of the dialog before an element inside the
// dialog is focused (#10152)
this._makeFocusTarget();

this._trigger( "open" );
},

Expand Down Expand Up @@ -583,14 +596,18 @@ return $.widget( "ui.dialog", {

_trackFocus: function() {
this._on( this.widget(), {
"focusin": function( event ) {
this._untrackInstance();
this._trackingInstances().unshift( this );
focusin: function( event ) {
this._makeFocusTarget();
this._focusedElement = $( event.target );
}
});
},

_makeFocusTarget: function() {
this._untrackInstance();
this._trackingInstances().unshift( this );
},

_untrackInstance: function() {
var instances = this._trackingInstances(),
exists = $.inArray( this, instances );
Expand Down
Loading