jquery-ui-rails 5.0.1 → 5.0.2

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 (64) hide show
  1. data/History.md +4 -0
  2. data/VERSIONS.md +1 -0
  3. data/app/assets/javascripts/jquery-ui/accordion.js +12 -3
  4. data/app/assets/javascripts/jquery-ui/autocomplete.js +2 -2
  5. data/app/assets/javascripts/jquery-ui/button.js +3 -3
  6. data/app/assets/javascripts/jquery-ui/core.js +2 -2
  7. data/app/assets/javascripts/jquery-ui/datepicker-el.js +1 -1
  8. data/app/assets/javascripts/jquery-ui/datepicker-fa.js +12 -12
  9. data/app/assets/javascripts/jquery-ui/datepicker-fr.js +1 -1
  10. data/app/assets/javascripts/jquery-ui/datepicker.js +3 -3
  11. data/app/assets/javascripts/jquery-ui/dialog.js +2 -2
  12. data/app/assets/javascripts/jquery-ui/draggable.js +290 -183
  13. data/app/assets/javascripts/jquery-ui/droppable.js +4 -4
  14. data/app/assets/javascripts/jquery-ui/effect-blind.js +1 -1
  15. data/app/assets/javascripts/jquery-ui/effect-bounce.js +1 -1
  16. data/app/assets/javascripts/jquery-ui/effect-clip.js +1 -1
  17. data/app/assets/javascripts/jquery-ui/effect-drop.js +2 -2
  18. data/app/assets/javascripts/jquery-ui/effect-explode.js +1 -1
  19. data/app/assets/javascripts/jquery-ui/effect-fade.js +1 -1
  20. data/app/assets/javascripts/jquery-ui/effect-fold.js +1 -1
  21. data/app/assets/javascripts/jquery-ui/effect-highlight.js +1 -1
  22. data/app/assets/javascripts/jquery-ui/effect-puff.js +1 -1
  23. data/app/assets/javascripts/jquery-ui/effect-pulsate.js +1 -1
  24. data/app/assets/javascripts/jquery-ui/effect-scale.js +1 -1
  25. data/app/assets/javascripts/jquery-ui/effect-shake.js +1 -1
  26. data/app/assets/javascripts/jquery-ui/effect-size.js +1 -1
  27. data/app/assets/javascripts/jquery-ui/effect-slide.js +1 -1
  28. data/app/assets/javascripts/jquery-ui/effect-transfer.js +1 -1
  29. data/app/assets/javascripts/jquery-ui/effect.js +4 -4
  30. data/app/assets/javascripts/jquery-ui/menu.js +28 -22
  31. data/app/assets/javascripts/jquery-ui/mouse.js +20 -8
  32. data/app/assets/javascripts/jquery-ui/position.js +1 -1
  33. data/app/assets/javascripts/jquery-ui/progressbar.js +2 -2
  34. data/app/assets/javascripts/jquery-ui/resizable.js +2 -2
  35. data/app/assets/javascripts/jquery-ui/selectable.js +2 -2
  36. data/app/assets/javascripts/jquery-ui/selectmenu.js +49 -5
  37. data/app/assets/javascripts/jquery-ui/slider.js +12 -4
  38. data/app/assets/javascripts/jquery-ui/sortable.js +12 -18
  39. data/app/assets/javascripts/jquery-ui/spinner.js +2 -2
  40. data/app/assets/javascripts/jquery-ui/tabs.js +13 -3
  41. data/app/assets/javascripts/jquery-ui/tooltip.js +38 -28
  42. data/app/assets/javascripts/jquery-ui/widget.js +14 -7
  43. data/app/assets/stylesheets/jquery-ui/accordion.css.erb +1 -1
  44. data/app/assets/stylesheets/jquery-ui/all.css.erb +1 -1
  45. data/app/assets/stylesheets/jquery-ui/autocomplete.css.erb +1 -1
  46. data/app/assets/stylesheets/jquery-ui/base.css.erb +1 -1
  47. data/app/assets/stylesheets/jquery-ui/button.css.erb +1 -1
  48. data/app/assets/stylesheets/jquery-ui/core.css.erb +1 -1
  49. data/app/assets/stylesheets/jquery-ui/datepicker.css.erb +1 -1
  50. data/app/assets/stylesheets/jquery-ui/dialog.css.erb +1 -1
  51. data/app/assets/stylesheets/jquery-ui/draggable.css.erb +1 -1
  52. data/app/assets/stylesheets/jquery-ui/menu.css.erb +1 -1
  53. data/app/assets/stylesheets/jquery-ui/progressbar.css.erb +1 -1
  54. data/app/assets/stylesheets/jquery-ui/resizable.css.erb +1 -1
  55. data/app/assets/stylesheets/jquery-ui/selectable.css.erb +1 -1
  56. data/app/assets/stylesheets/jquery-ui/selectmenu.css.erb +1 -1
  57. data/app/assets/stylesheets/jquery-ui/slider.css.erb +1 -1
  58. data/app/assets/stylesheets/jquery-ui/sortable.css.erb +1 -1
  59. data/app/assets/stylesheets/jquery-ui/spinner.css.erb +1 -1
  60. data/app/assets/stylesheets/jquery-ui/tabs.css.erb +1 -1
  61. data/app/assets/stylesheets/jquery-ui/theme.css.erb +1 -1
  62. data/app/assets/stylesheets/jquery-ui/tooltip.css.erb +1 -1
  63. data/lib/jquery/ui/rails/version.rb +2 -2
  64. metadata +3 -3
@@ -4,7 +4,7 @@
4
4
  //= require jquery-ui/draggable
5
5
 
6
6
  /*!
7
- * jQuery UI Droppable 1.11.1
7
+ * jQuery UI Droppable 1.11.2
8
8
  * http://jqueryui.com
9
9
  *
10
10
  * Copyright 2014 jQuery Foundation and other contributors
@@ -32,7 +32,7 @@
32
32
  }(function( $ ) {
33
33
 
34
34
  $.widget( "ui.droppable", {
35
- version: "1.11.1",
35
+ version: "1.11.2",
36
36
  widgetEventPrefix: "drop",
37
37
  options: {
38
38
  accept: "*",
@@ -240,8 +240,8 @@ $.ui.intersect = (function() {
240
240
  return false;
241
241
  }
242
242
 
243
- var x1 = ( draggable.positionAbs || draggable.position.absolute ).left,
244
- y1 = ( draggable.positionAbs || draggable.position.absolute ).top,
243
+ var x1 = ( draggable.positionAbs || draggable.position.absolute ).left + draggable.margins.left,
244
+ y1 = ( draggable.positionAbs || draggable.position.absolute ).top + draggable.margins.top,
245
245
  x2 = x1 + draggable.helperProportions.width,
246
246
  y2 = y1 + draggable.helperProportions.height,
247
247
  l = droppable.offset.left,
@@ -1,7 +1,7 @@
1
1
  //= require jquery-ui/effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Blind 1.11.1
4
+ * jQuery UI Effects Blind 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Bounce 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Clip 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Drop 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 jQuery Foundation and other contributors
@@ -44,7 +44,7 @@ return $.effects.effect.drop = function( o, done ) {
44
44
  el.show();
45
45
  $.effects.createWrapper( el );
46
46
 
47
- distance = o.distance || el[ ref === "top" ? "outerHeight": "outerWidth" ]( true ) / 2;
47
+ distance = o.distance || el[ ref === "top" ? "outerHeight" : "outerWidth" ]( true ) / 2;
48
48
 
49
49
  if ( show ) {
50
50
  el
@@ -1,7 +1,7 @@
1
1
  //= require jquery-ui/effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Explode 1.11.1
4
+ * jQuery UI Effects Explode 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Fade 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Fold 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Highlight 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 jQuery Foundation and other contributors
@@ -2,7 +2,7 @@
2
2
  //= require jquery-ui/effect-scale
3
3
 
4
4
  /*!
5
- * jQuery UI Effects Puff 1.11.1
5
+ * jQuery UI Effects Puff 1.11.2
6
6
  * http://jqueryui.com
7
7
  *
8
8
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Pulsate 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 jQuery Foundation and other contributors
@@ -2,7 +2,7 @@
2
2
  //= require jquery-ui/effect-size
3
3
 
4
4
  /*!
5
- * jQuery UI Effects Scale 1.11.1
5
+ * jQuery UI Effects Scale 1.11.2
6
6
  * http://jqueryui.com
7
7
  *
8
8
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Shake 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 jQuery Foundation and other contributors
@@ -1,7 +1,7 @@
1
1
  //= require jquery-ui/effect
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Size 1.11.1
4
+ * jQuery UI Effects Size 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Slide 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 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.11.1
4
+ * jQuery UI Effects Transfer 1.11.2
5
5
  * http://jqueryui.com
6
6
  *
7
7
  * Copyright 2014 jQuery Foundation and other contributors
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects 1.11.1
2
+ * jQuery UI Effects 1.11.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2014 jQuery Foundation and other contributors
@@ -633,7 +633,7 @@ color.hook = function( hook ) {
633
633
  }
634
634
  try {
635
635
  elem.style[ hook ] = value;
636
- } catch( e ) {
636
+ } catch ( e ) {
637
637
  // wrapped to prevent IE from throwing errors on "invalid" values like 'auto' or 'inherit'
638
638
  }
639
639
  }
@@ -904,7 +904,7 @@ $.fn.extend({
904
904
  (function() {
905
905
 
906
906
  $.extend( $.effects, {
907
- version: "1.11.1",
907
+ version: "1.11.2",
908
908
 
909
909
  // Saves a set of properties in a data storage
910
910
  save: function( element, set ) {
@@ -998,7 +998,7 @@ $.extend( $.effects, {
998
998
  // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
999
999
  try {
1000
1000
  active.id;
1001
- } catch( e ) {
1001
+ } catch ( e ) {
1002
1002
  active = document.body;
1003
1003
  }
1004
1004
 
@@ -3,7 +3,7 @@
3
3
  //= require jquery-ui/position
4
4
 
5
5
  /*!
6
- * jQuery UI Menu 1.11.1
6
+ * jQuery UI Menu 1.11.2
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright 2014 jQuery Foundation and other contributors
@@ -30,7 +30,7 @@
30
30
  }(function( $ ) {
31
31
 
32
32
  return $.widget( "ui.menu", {
33
- version: "1.11.1",
33
+ version: "1.11.2",
34
34
  defaultElement: "<ul>",
35
35
  delay: 300,
36
36
  options: {
@@ -105,6 +105,12 @@ return $.widget( "ui.menu", {
105
105
  }
106
106
  },
107
107
  "mouseenter .ui-menu-item": function( event ) {
108
+ // Ignore mouse events while typeahead is active, see #10458.
109
+ // Prevents focusing the wrong item when typeahead causes a scroll while the mouse
110
+ // is over an item in the menu
111
+ if ( this.previousFilter ) {
112
+ return;
113
+ }
108
114
  var target = $( event.currentTarget );
109
115
  // Remove ui-state-active class from siblings of the newly focused menu item
110
116
  // to avoid a jump caused by adjacent elements both having a class with a border
@@ -184,13 +190,9 @@ return $.widget( "ui.menu", {
184
190
  },
185
191
 
186
192
  _keydown: function( event ) {
187
- var match, prev, character, skip, regex,
193
+ var match, prev, character, skip,
188
194
  preventDefault = true;
189
195
 
190
- function escape( value ) {
191
- return value.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" );
192
- }
193
-
194
196
  switch ( event.keyCode ) {
195
197
  case $.ui.keyCode.PAGE_UP:
196
198
  this.previousPage( event );
@@ -239,10 +241,7 @@ return $.widget( "ui.menu", {
239
241
  character = prev + character;
240
242
  }
241
243
 
242
- regex = new RegExp( "^" + escape( character ), "i" );
243
- match = this.activeMenu.find( this.options.items ).filter(function() {
244
- return regex.test( $( this ).text() );
245
- });
244
+ match = this._filterMenuItems( character );
246
245
  match = skip && match.index( this.active.next() ) !== -1 ?
247
246
  this.active.nextAll( ".ui-menu-item" ) :
248
247
  match;
@@ -251,22 +250,15 @@ return $.widget( "ui.menu", {
251
250
  // to move down the menu to the first item that starts with that character
252
251
  if ( !match.length ) {
253
252
  character = String.fromCharCode( event.keyCode );
254
- regex = new RegExp( "^" + escape( character ), "i" );
255
- match = this.activeMenu.find( this.options.items ).filter(function() {
256
- return regex.test( $( this ).text() );
257
- });
253
+ match = this._filterMenuItems( character );
258
254
  }
259
255
 
260
256
  if ( match.length ) {
261
257
  this.focus( event, match );
262
- if ( match.length > 1 ) {
263
- this.previousFilter = character;
264
- this.filterTimer = this._delay(function() {
265
- delete this.previousFilter;
266
- }, 1000 );
267
- } else {
258
+ this.previousFilter = character;
259
+ this.filterTimer = this._delay(function() {
268
260
  delete this.previousFilter;
269
- }
261
+ }, 1000 );
270
262
  } else {
271
263
  delete this.previousFilter;
272
264
  }
@@ -638,6 +630,20 @@ return $.widget( "ui.menu", {
638
630
  this.collapseAll( event, true );
639
631
  }
640
632
  this._trigger( "select", event, ui );
633
+ },
634
+
635
+ _filterMenuItems: function(character) {
636
+ var escapedCharacter = character.replace( /[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&" ),
637
+ regex = new RegExp( "^" + escapedCharacter, "i" );
638
+
639
+ return this.activeMenu
640
+ .find( this.options.items )
641
+
642
+ // Only match on items, not dividers or other content (#10571)
643
+ .filter( ".ui-menu-item" )
644
+ .filter(function() {
645
+ return regex.test( $.trim( $( this ).text() ) );
646
+ });
641
647
  }
642
648
  });
643
649
 
@@ -2,7 +2,7 @@
2
2
  //= require jquery-ui/widget
3
3
 
4
4
  /*!
5
- * jQuery UI Mouse 1.11.1
5
+ * jQuery UI Mouse 1.11.2
6
6
  * http://jqueryui.com
7
7
  *
8
8
  * Copyright 2014 jQuery Foundation and other contributors
@@ -32,7 +32,7 @@ $( document ).mouseup( function() {
32
32
  });
33
33
 
34
34
  return $.widget("ui.mouse", {
35
- version: "1.11.1",
35
+ version: "1.11.2",
36
36
  options: {
37
37
  cancel: "input,textarea,button,select,option",
38
38
  distance: 1,
@@ -73,6 +73,8 @@ return $.widget("ui.mouse", {
73
73
  return;
74
74
  }
75
75
 
76
+ this._mouseMoved = false;
77
+
76
78
  // we may have missed mouseup (out of window)
77
79
  (this._mouseStarted && this._mouseUp(event));
78
80
 
@@ -126,13 +128,23 @@ return $.widget("ui.mouse", {
126
128
  },
127
129
 
128
130
  _mouseMove: function(event) {
129
- // IE mouseup check - mouseup happened when mouse was out of window
130
- if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
131
- return this._mouseUp(event);
131
+ // Only check for mouseups outside the document if you've moved inside the document
132
+ // at least once. This prevents the firing of mouseup in the case of IE<9, which will
133
+ // fire a mousemove event if content is placed under the cursor. See #7778
134
+ // Support: IE <9
135
+ if ( this._mouseMoved ) {
136
+ // IE mouseup check - mouseup happened when mouse was out of window
137
+ if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
138
+ return this._mouseUp(event);
139
+
140
+ // Iframe mouseup check - mouseup occurred in another document
141
+ } else if ( !event.which ) {
142
+ return this._mouseUp( event );
143
+ }
144
+ }
132
145
 
133
- // Iframe mouseup check - mouseup occurred in another document
134
- } else if ( !event.which ) {
135
- return this._mouseUp( event );
146
+ if ( event.which || event.button ) {
147
+ this._mouseMoved = true;
136
148
  }
137
149
 
138
150
  if (this._mouseStarted) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Position 1.11.1
2
+ * jQuery UI Position 1.11.2
3
3
  * http://jqueryui.com
4
4
  *
5
5
  * Copyright 2014 jQuery Foundation and other contributors
@@ -2,7 +2,7 @@
2
2
  //= require jquery-ui/widget
3
3
 
4
4
  /*!
5
- * jQuery UI Progressbar 1.11.1
5
+ * jQuery UI Progressbar 1.11.2
6
6
  * http://jqueryui.com
7
7
  *
8
8
  * Copyright 2014 jQuery Foundation and other contributors
@@ -28,7 +28,7 @@
28
28
  }(function( $ ) {
29
29
 
30
30
  return $.widget( "ui.progressbar", {
31
- version: "1.11.1",
31
+ version: "1.11.2",
32
32
  options: {
33
33
  max: 100,
34
34
  value: 0,
@@ -3,7 +3,7 @@
3
3
  //= require jquery-ui/mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Resizable 1.11.1
6
+ * jQuery UI Resizable 1.11.2
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright 2014 jQuery Foundation and other contributors
@@ -30,7 +30,7 @@
30
30
  }(function( $ ) {
31
31
 
32
32
  $.widget("ui.resizable", $.ui.mouse, {
33
- version: "1.11.1",
33
+ version: "1.11.2",
34
34
  widgetEventPrefix: "resize",
35
35
  options: {
36
36
  alsoResize: false,
@@ -3,7 +3,7 @@
3
3
  //= require jquery-ui/mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Selectable 1.11.1
6
+ * jQuery UI Selectable 1.11.2
7
7
  * http://jqueryui.com
8
8
  *
9
9
  * Copyright 2014 jQuery Foundation and other contributors
@@ -30,7 +30,7 @@
30
30
  }(function( $ ) {
31
31
 
32
32
  return $.widget("ui.selectable", $.ui.mouse, {
33
- version: "1.11.1",
33
+ version: "1.11.2",
34
34
  options: {
35
35
  appendTo: "body",
36
36
  autoRefresh: true,