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.

Files changed (70) hide show
  1. data/History.md +6 -2
  2. data/README.md +4 -0
  3. data/app/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  4. data/app/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  5. data/app/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  6. data/app/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  7. data/app/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  8. data/app/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  9. data/app/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  10. data/app/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  11. data/app/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  12. data/app/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  13. data/app/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  14. data/app/assets/javascripts/jquery.ui.accordion.js +6 -5
  15. data/app/assets/javascripts/jquery.ui.autocomplete.js +26 -30
  16. data/app/assets/javascripts/jquery.ui.button.js +5 -5
  17. data/app/assets/javascripts/jquery.ui.core.js +19 -23
  18. data/app/assets/javascripts/jquery.ui.datepicker-de.js +3 -3
  19. data/app/assets/javascripts/jquery.ui.datepicker-sk.js +3 -3
  20. data/app/assets/javascripts/jquery.ui.datepicker-sr-SR.js +1 -1
  21. data/app/assets/javascripts/jquery.ui.datepicker-sr.js +1 -1
  22. data/app/assets/javascripts/jquery.ui.datepicker.js +27 -33
  23. data/app/assets/javascripts/jquery.ui.dialog.js +61 -20
  24. data/app/assets/javascripts/jquery.ui.draggable.js +95 -83
  25. data/app/assets/javascripts/jquery.ui.droppable.js +4 -3
  26. data/app/assets/javascripts/jquery.ui.effect-blind.js +1 -1
  27. data/app/assets/javascripts/jquery.ui.effect-bounce.js +1 -1
  28. data/app/assets/javascripts/jquery.ui.effect-clip.js +1 -1
  29. data/app/assets/javascripts/jquery.ui.effect-drop.js +1 -1
  30. data/app/assets/javascripts/jquery.ui.effect-explode.js +1 -1
  31. data/app/assets/javascripts/jquery.ui.effect-fade.js +1 -1
  32. data/app/assets/javascripts/jquery.ui.effect-fold.js +1 -1
  33. data/app/assets/javascripts/jquery.ui.effect-highlight.js +1 -1
  34. data/app/assets/javascripts/jquery.ui.effect-pulsate.js +1 -1
  35. data/app/assets/javascripts/jquery.ui.effect-scale.js +1 -1
  36. data/app/assets/javascripts/jquery.ui.effect-shake.js +1 -1
  37. data/app/assets/javascripts/jquery.ui.effect-slide.js +1 -1
  38. data/app/assets/javascripts/jquery.ui.effect-transfer.js +1 -1
  39. data/app/assets/javascripts/jquery.ui.effect.js +93 -72
  40. data/app/assets/javascripts/jquery.ui.menu.js +3 -3
  41. data/app/assets/javascripts/jquery.ui.mouse.js +2 -2
  42. data/app/assets/javascripts/jquery.ui.position.js +6 -6
  43. data/app/assets/javascripts/jquery.ui.progressbar.js +2 -2
  44. data/app/assets/javascripts/jquery.ui.resizable.js +2 -2
  45. data/app/assets/javascripts/jquery.ui.selectable.js +2 -2
  46. data/app/assets/javascripts/jquery.ui.slider.js +89 -66
  47. data/app/assets/javascripts/jquery.ui.sortable.js +65 -30
  48. data/app/assets/javascripts/jquery.ui.spinner.js +3 -2
  49. data/app/assets/javascripts/jquery.ui.tabs.js +2 -2
  50. data/app/assets/javascripts/jquery.ui.tooltip.js +2 -2
  51. data/app/assets/javascripts/jquery.ui.widget.js +1 -1
  52. data/app/assets/stylesheets/jquery.ui.accordion.css.erb +1 -1
  53. data/app/assets/stylesheets/jquery.ui.all.css.erb +1 -1
  54. data/app/assets/stylesheets/jquery.ui.autocomplete.css.erb +1 -1
  55. data/app/assets/stylesheets/jquery.ui.base.css.erb +1 -1
  56. data/app/assets/stylesheets/jquery.ui.button.css.erb +1 -1
  57. data/app/assets/stylesheets/jquery.ui.core.css.erb +2 -1
  58. data/app/assets/stylesheets/jquery.ui.datepicker.css.erb +1 -1
  59. data/app/assets/stylesheets/jquery.ui.dialog.css.erb +1 -1
  60. data/app/assets/stylesheets/jquery.ui.menu.css.erb +3 -1
  61. data/app/assets/stylesheets/jquery.ui.progressbar.css.erb +1 -1
  62. data/app/assets/stylesheets/jquery.ui.resizable.css.erb +1 -1
  63. data/app/assets/stylesheets/jquery.ui.selectable.css.erb +1 -1
  64. data/app/assets/stylesheets/jquery.ui.slider.css.erb +1 -1
  65. data/app/assets/stylesheets/jquery.ui.spinner.css.erb +1 -1
  66. data/app/assets/stylesheets/jquery.ui.tabs.css.erb +2 -2
  67. data/app/assets/stylesheets/jquery.ui.theme.css.erb +2 -2
  68. data/app/assets/stylesheets/jquery.ui.tooltip.css.erb +1 -1
  69. data/lib/jquery/ui/rails/version.rb +1 -1
  70. metadata +3 -3
@@ -4,7 +4,7 @@
4
4
  //= require jquery.ui.draggable
5
5
 
6
6
  /*!
7
- * jQuery UI Droppable 1.10.0
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.0",
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
- $.each($.ui.ddmanager.droppables[draggable.options.scope] || [], function() {
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,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Blind 1.10.0
4
+ * jQuery UI Effects Blind 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Bounce 1.10.0
4
+ * jQuery UI Effects Bounce 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Clip 1.10.0
4
+ * jQuery UI Effects Clip 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Drop 1.10.0
4
+ * jQuery UI Effects Drop 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Explode 1.10.0
4
+ * jQuery UI Effects Explode 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Fade 1.10.0
4
+ * jQuery UI Effects Fade 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Fold 1.10.0
4
+ * jQuery UI Effects Fold 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Highlight 1.10.0
4
+ * jQuery UI Effects Highlight 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Pulsate 1.10.0
4
+ * jQuery UI Effects Pulsate 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Scale 1.10.0
4
+ * jQuery UI Effects Scale 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Shake 1.10.0
4
+ * jQuery UI Effects Shake 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Slide 1.10.0
4
+ * jQuery UI Effects Slide 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Transfer 1.10.0
4
+ * jQuery UI Effects Transfer 1.10.3
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2013 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects 1.10.0
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
- ;(jQuery.effects || (function($, undefined) {
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
- _addClass: $.fn.addClass,
843
- addClass: function( classNames, speed, easing, callback ) {
844
- return speed ?
845
- $.effects.animateClass.call( this,
846
- { add: classNames }, speed, easing, callback ) :
847
- this._addClass( classNames );
848
- },
849
-
850
- _removeClass: $.fn.removeClass,
851
- removeClass: function( classNames, speed, easing, callback ) {
852
- return speed ?
853
- $.effects.animateClass.call( this,
854
- { remove: classNames }, speed, easing, callback ) :
855
- this._removeClass( classNames );
856
- },
857
-
858
- _toggleClass: $.fn.toggleClass,
859
- toggleClass: function( classNames, force, speed, easing, callback ) {
860
- if ( typeof force === "boolean" || force === undefined ) {
861
- if ( !speed ) {
862
- // without speed parameter
863
- return this._toggleClass( classNames, force );
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
- (force ? { add: classNames } : { remove: classNames }),
867
- speed, easing, callback );
874
+ { toggle: classNames }, force, speed, easing );
868
875
  }
869
- } else {
870
- // without force parameter
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.0",
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 standardSpeed( speed ) {
1110
- // valid standard speeds
1111
- if ( !speed || typeof speed === "number" || $.fx.speeds[ speed ] ) {
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
- // invalid strings - treat as "normal" speed
1116
- return typeof speed === "string" && !$.effects.effect[ speed ];
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
- // if the element is hiddden and mode is hide,
1154
- // or element is visible and mode is show
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
- _show: $.fn.show,
1166
- show: function( speed ) {
1167
- if ( standardSpeed( speed ) ) {
1168
- return this._show.apply( this, arguments );
1169
- } else {
1170
- var args = _normalizeArguments.apply( this, arguments );
1171
- args.mode = "show";
1172
- return this.effect.call( this, args );
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
- _hide: $.fn.hide,
1177
- hide: function( speed ) {
1178
- if ( standardSpeed( speed ) ) {
1179
- return this._hide.apply( this, arguments );
1180
- } else {
1181
- var args = _normalizeArguments.apply( this, arguments );
1182
- args.mode = "hide";
1183
- return this.effect.call( this, args );
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
- // jQuery core overloads toggle and creates _toggle
1188
- __toggle: $.fn.toggle,
1189
- toggle: function( speed ) {
1190
- if ( standardSpeed( speed ) || typeof speed === "boolean" || $.isFunction( speed ) ) {
1191
- return this.__toggle.apply( this, arguments );
1192
- } else {
1193
- var args = _normalizeArguments.apply( this, arguments );
1194
- args.mode = "toggle";
1195
- return this.effect.call( this, args );
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.0
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.0",
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 ( !/[^\-—–\s]/.test( item.text() ) ) {
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.0
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.0",
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.0
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
- parseInt( offsets[ 0 ], 10 ) * ( rpercent.test( offsets[ 0 ] ) ? width / 100 : 1 ),
29
- parseInt( offsets[ 1 ], 10 ) * ( rpercent.test( offsets[ 1 ] ) ? height / 100 : 1 )
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: hasOverflowX ? $.position.scrollbarWidth() : 0,
99
- height: hasOverflowY ? $.position.scrollbarWidth() : 0
98
+ width: hasOverflowY ? $.position.scrollbarWidth() : 0,
99
+ height: hasOverflowX ? $.position.scrollbarWidth() : 0
100
100
  };
101
101
  },
102
102
  getWithinInfo: function( element ) {