jquery-ui-rails 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-ui-rails might be problematic. Click here for more details.
- data/History.md +6 -2
- data/README.md +4 -0
- data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
- data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
- data/app/assets/javascripts/jquery.ui.accordion.js +6 -5
- data/app/assets/javascripts/jquery.ui.autocomplete.js +26 -30
- data/app/assets/javascripts/jquery.ui.button.js +5 -5
- data/app/assets/javascripts/jquery.ui.core.js +19 -23
- data/app/assets/javascripts/jquery.ui.datepicker-de.js +3 -3
- data/app/assets/javascripts/jquery.ui.datepicker-sk.js +3 -3
- data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +1 -1
- data/app/assets/javascripts/jquery.ui.datepicker-sr.js +1 -1
- data/app/assets/javascripts/jquery.ui.datepicker.js +27 -33
- data/app/assets/javascripts/jquery.ui.dialog.js +61 -20
- data/app/assets/javascripts/jquery.ui.draggable.js +95 -83
- data/app/assets/javascripts/jquery.ui.droppable.js +4 -3
- data/app/assets/javascripts/jquery.ui.effect-blind.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-bounce.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-clip.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-drop.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-explode.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-fade.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-fold.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-highlight.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-pulsate.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-scale.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-shake.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-slide.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect-transfer.js +1 -1
- data/app/assets/javascripts/jquery.ui.effect.js +93 -72
- data/app/assets/javascripts/jquery.ui.menu.js +3 -3
- data/app/assets/javascripts/jquery.ui.mouse.js +2 -2
- data/app/assets/javascripts/jquery.ui.position.js +6 -6
- data/app/assets/javascripts/jquery.ui.progressbar.js +2 -2
- data/app/assets/javascripts/jquery.ui.resizable.js +2 -2
- data/app/assets/javascripts/jquery.ui.selectable.js +2 -2
- data/app/assets/javascripts/jquery.ui.slider.js +89 -66
- data/app/assets/javascripts/jquery.ui.sortable.js +65 -30
- data/app/assets/javascripts/jquery.ui.spinner.js +3 -2
- data/app/assets/javascripts/jquery.ui.tabs.js +2 -2
- data/app/assets/javascripts/jquery.ui.tooltip.js +2 -2
- data/app/assets/javascripts/jquery.ui.widget.js +1 -1
- data/app/assets/stylesheets/jquery.ui.accordion.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.all.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.autocomplete.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.base.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.button.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.core.css.erb +2 -1
- data/app/assets/stylesheets/jquery.ui.datepicker.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.dialog.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.menu.css.erb +3 -1
- data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.resizable.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.selectable.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.slider.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.spinner.css.erb +1 -1
- data/app/assets/stylesheets/jquery.ui.tabs.css.erb +2 -2
- data/app/assets/stylesheets/jquery.ui.theme.css.erb +2 -2
- data/app/assets/stylesheets/jquery.ui.tooltip.css.erb +1 -1
- data/lib/jquery/ui/rails/version.rb +1 -1
- metadata +3 -3
@@ -4,7 +4,7 @@
|
|
4
4
|
//= require jquery.ui.draggable
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Droppable 1.10.
|
7
|
+
* jQuery UI Droppable 1.10.3
|
8
8
|
* http://jqueryui.com
|
9
9
|
*
|
10
10
|
* Copyright 2013 jQuery Foundation and other contributors
|
@@ -26,7 +26,7 @@ function isOverAxis( x, reference, size ) {
|
|
26
26
|
}
|
27
27
|
|
28
28
|
$.widget("ui.droppable", {
|
29
|
-
version: "1.10.
|
29
|
+
version: "1.10.3",
|
30
30
|
widgetEventPrefix: "drop",
|
31
31
|
options: {
|
32
32
|
accept: "*",
|
@@ -283,7 +283,8 @@ $.ui.ddmanager = {
|
|
283
283
|
drop: function(draggable, event) {
|
284
284
|
|
285
285
|
var dropped = false;
|
286
|
-
|
286
|
+
// Create a copy of the droppables in case the list changes during the drop (#9116)
|
287
|
+
$.each(($.ui.ddmanager.droppables[draggable.options.scope] || []).slice(), function() {
|
287
288
|
|
288
289
|
if(!this.options) {
|
289
290
|
return;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Effects 1.10.
|
2
|
+
* jQuery UI Effects 1.10.3
|
3
3
|
* http://jqueryui.com
|
4
4
|
*
|
5
5
|
* Copyright 2013 jQuery Foundation and other contributors
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*
|
9
9
|
* http://api.jqueryui.com/category/effects-core/
|
10
10
|
*/
|
11
|
-
|
11
|
+
(function($, undefined) {
|
12
12
|
|
13
13
|
var dataSpace = "ui-effects-";
|
14
14
|
|
@@ -839,39 +839,42 @@ $.effects.animateClass = function( value, duration, easing, callback ) {
|
|
839
839
|
};
|
840
840
|
|
841
841
|
$.fn.extend({
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
removeClass: function(
|
852
|
-
return speed
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
842
|
+
addClass: (function( orig ) {
|
843
|
+
return function( classNames, speed, easing, callback ) {
|
844
|
+
return speed ?
|
845
|
+
$.effects.animateClass.call( this,
|
846
|
+
{ add: classNames }, speed, easing, callback ) :
|
847
|
+
orig.apply( this, arguments );
|
848
|
+
};
|
849
|
+
})( $.fn.addClass ),
|
850
|
+
|
851
|
+
removeClass: (function( orig ) {
|
852
|
+
return function( classNames, speed, easing, callback ) {
|
853
|
+
return arguments.length > 1 ?
|
854
|
+
$.effects.animateClass.call( this,
|
855
|
+
{ remove: classNames }, speed, easing, callback ) :
|
856
|
+
orig.apply( this, arguments );
|
857
|
+
};
|
858
|
+
})( $.fn.removeClass ),
|
859
|
+
|
860
|
+
toggleClass: (function( orig ) {
|
861
|
+
return function( classNames, force, speed, easing, callback ) {
|
862
|
+
if ( typeof force === "boolean" || force === undefined ) {
|
863
|
+
if ( !speed ) {
|
864
|
+
// without speed parameter
|
865
|
+
return orig.apply( this, arguments );
|
866
|
+
} else {
|
867
|
+
return $.effects.animateClass.call( this,
|
868
|
+
(force ? { add: classNames } : { remove: classNames }),
|
869
|
+
speed, easing, callback );
|
870
|
+
}
|
864
871
|
} else {
|
872
|
+
// without force parameter
|
865
873
|
return $.effects.animateClass.call( this,
|
866
|
-
|
867
|
-
speed, easing, callback );
|
874
|
+
{ toggle: classNames }, force, speed, easing );
|
868
875
|
}
|
869
|
-
}
|
870
|
-
|
871
|
-
return $.effects.animateClass.call( this,
|
872
|
-
{ toggle: classNames }, force, speed, easing );
|
873
|
-
}
|
874
|
-
},
|
876
|
+
};
|
877
|
+
})( $.fn.toggleClass ),
|
875
878
|
|
876
879
|
switchClass: function( remove, add, speed, easing, callback) {
|
877
880
|
return $.effects.animateClass.call( this, {
|
@@ -890,7 +893,7 @@ $.fn.extend({
|
|
890
893
|
(function() {
|
891
894
|
|
892
895
|
$.extend( $.effects, {
|
893
|
-
version: "1.10.
|
896
|
+
version: "1.10.3",
|
894
897
|
|
895
898
|
// Saves a set of properties in a data storage
|
896
899
|
save: function( element, set ) {
|
@@ -1106,14 +1109,29 @@ function _normalizeArguments( effect, options, speed, callback ) {
|
|
1106
1109
|
return effect;
|
1107
1110
|
}
|
1108
1111
|
|
1109
|
-
function
|
1110
|
-
//
|
1111
|
-
if ( !
|
1112
|
+
function standardAnimationOption( option ) {
|
1113
|
+
// Valid standard speeds (nothing, number, named speed)
|
1114
|
+
if ( !option || typeof option === "number" || $.fx.speeds[ option ] ) {
|
1115
|
+
return true;
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
// Invalid strings - treat as "normal" speed
|
1119
|
+
if ( typeof option === "string" && !$.effects.effect[ option ] ) {
|
1120
|
+
return true;
|
1121
|
+
}
|
1122
|
+
|
1123
|
+
// Complete callback
|
1124
|
+
if ( $.isFunction( option ) ) {
|
1125
|
+
return true;
|
1126
|
+
}
|
1127
|
+
|
1128
|
+
// Options hash (but not naming an effect)
|
1129
|
+
if ( typeof option === "object" && !option.effect ) {
|
1112
1130
|
return true;
|
1113
1131
|
}
|
1114
1132
|
|
1115
|
-
//
|
1116
|
-
return
|
1133
|
+
// Didn't match any standard API
|
1134
|
+
return false;
|
1117
1135
|
}
|
1118
1136
|
|
1119
1137
|
$.fn.extend({
|
@@ -1150,9 +1168,10 @@ $.fn.extend({
|
|
1150
1168
|
}
|
1151
1169
|
}
|
1152
1170
|
|
1153
|
-
//
|
1154
|
-
//
|
1171
|
+
// If the element already has the correct final state, delegate to
|
1172
|
+
// the core methods so the internal tracking of "olddisplay" works.
|
1155
1173
|
if ( elem.is( ":hidden" ) ? mode === "hide" : mode === "show" ) {
|
1174
|
+
elem[ mode ]();
|
1156
1175
|
done();
|
1157
1176
|
} else {
|
1158
1177
|
effectMethod.call( elem[0], args, done );
|
@@ -1162,39 +1181,41 @@ $.fn.extend({
|
|
1162
1181
|
return queue === false ? this.each( run ) : this.queue( queue || "fx", run );
|
1163
1182
|
},
|
1164
1183
|
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
|
1184
|
+
show: (function( orig ) {
|
1185
|
+
return function( option ) {
|
1186
|
+
if ( standardAnimationOption( option ) ) {
|
1187
|
+
return orig.apply( this, arguments );
|
1188
|
+
} else {
|
1189
|
+
var args = _normalizeArguments.apply( this, arguments );
|
1190
|
+
args.mode = "show";
|
1191
|
+
return this.effect.call( this, args );
|
1192
|
+
}
|
1193
|
+
};
|
1194
|
+
})( $.fn.show ),
|
1175
1195
|
|
1176
|
-
|
1177
|
-
|
1178
|
-
|
1179
|
-
|
1180
|
-
|
1181
|
-
|
1182
|
-
|
1183
|
-
|
1184
|
-
|
1185
|
-
|
1196
|
+
hide: (function( orig ) {
|
1197
|
+
return function( option ) {
|
1198
|
+
if ( standardAnimationOption( option ) ) {
|
1199
|
+
return orig.apply( this, arguments );
|
1200
|
+
} else {
|
1201
|
+
var args = _normalizeArguments.apply( this, arguments );
|
1202
|
+
args.mode = "hide";
|
1203
|
+
return this.effect.call( this, args );
|
1204
|
+
}
|
1205
|
+
};
|
1206
|
+
})( $.fn.hide ),
|
1186
1207
|
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1196
|
-
}
|
1197
|
-
},
|
1208
|
+
toggle: (function( orig ) {
|
1209
|
+
return function( option ) {
|
1210
|
+
if ( standardAnimationOption( option ) || typeof option === "boolean" ) {
|
1211
|
+
return orig.apply( this, arguments );
|
1212
|
+
} else {
|
1213
|
+
var args = _normalizeArguments.apply( this, arguments );
|
1214
|
+
args.mode = "toggle";
|
1215
|
+
return this.effect.call( this, args );
|
1216
|
+
}
|
1217
|
+
};
|
1218
|
+
})( $.fn.toggle ),
|
1198
1219
|
|
1199
1220
|
// helper functions
|
1200
1221
|
cssUnit: function(key) {
|
@@ -1265,4 +1286,4 @@ $.each( baseEasings, function( name, easeIn ) {
|
|
1265
1286
|
|
1266
1287
|
})();
|
1267
1288
|
|
1268
|
-
})(jQuery)
|
1289
|
+
})(jQuery);
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery.ui.position
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Menu 1.10.
|
6
|
+
* jQuery UI Menu 1.10.3
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright 2013 jQuery Foundation and other contributors
|
@@ -20,7 +20,7 @@
|
|
20
20
|
(function( $, undefined ) {
|
21
21
|
|
22
22
|
$.widget( "ui.menu", {
|
23
|
-
version: "1.10.
|
23
|
+
version: "1.10.3",
|
24
24
|
defaultElement: "<ul>",
|
25
25
|
delay: 300,
|
26
26
|
options: {
|
@@ -327,7 +327,7 @@ $.widget( "ui.menu", {
|
|
327
327
|
menus.children( ":not(.ui-menu-item)" ).each(function() {
|
328
328
|
var item = $( this );
|
329
329
|
// hyphen, em dash, en dash
|
330
|
-
if ( !/[
|
330
|
+
if ( !/[^\-\u2014\u2013\s]/.test( item.text() ) ) {
|
331
331
|
item.addClass( "ui-widget-content ui-menu-divider" );
|
332
332
|
}
|
333
333
|
});
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery.ui.widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Mouse 1.10.
|
5
|
+
* jQuery UI Mouse 1.10.3
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
8
|
* Copyright 2013 jQuery Foundation and other contributors
|
@@ -22,7 +22,7 @@ $( document ).mouseup( function() {
|
|
22
22
|
});
|
23
23
|
|
24
24
|
$.widget("ui.mouse", {
|
25
|
-
version: "1.10.
|
25
|
+
version: "1.10.3",
|
26
26
|
options: {
|
27
27
|
cancel: "input,textarea,button,select,option",
|
28
28
|
distance: 1,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Position 1.10.
|
2
|
+
* jQuery UI Position 1.10.3
|
3
3
|
* http://jqueryui.com
|
4
4
|
*
|
5
5
|
* Copyright 2013 jQuery Foundation and other contributors
|
@@ -18,15 +18,15 @@ var cachedScrollbarWidth,
|
|
18
18
|
round = Math.round,
|
19
19
|
rhorizontal = /left|center|right/,
|
20
20
|
rvertical = /top|center|bottom/,
|
21
|
-
roffset = /[\+\-]\d
|
21
|
+
roffset = /[\+\-]\d+(\.[\d]+)?%?/,
|
22
22
|
rposition = /^\w+/,
|
23
23
|
rpercent = /%$/,
|
24
24
|
_position = $.fn.position;
|
25
25
|
|
26
26
|
function getOffsets( offsets, width, height ) {
|
27
27
|
return [
|
28
|
-
|
29
|
-
|
28
|
+
parseFloat( offsets[ 0 ] ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
|
29
|
+
parseFloat( offsets[ 1 ] ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
|
30
30
|
];
|
31
31
|
}
|
32
32
|
|
@@ -95,8 +95,8 @@ $.position = {
|
|
95
95
|
hasOverflowY = overflowY === "scroll" ||
|
96
96
|
( overflowY === "auto" && within.height < within.element[0].scrollHeight );
|
97
97
|
return {
|
98
|
-
width:
|
99
|
-
height:
|
98
|
+
width: hasOverflowY ? $.position.scrollbarWidth() : 0,
|
99
|
+
height: hasOverflowX ? $.position.scrollbarWidth() : 0
|
100
100
|
};
|
101
101
|
},
|
102
102
|
getWithinInfo: function( element ) {
|