jquery-ui-rails 4.0.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of jquery-ui-rails might be problematic. Click here for more details.

Files changed (149) hide show
  1. data/.travis.yml +0 -1
  2. data/Gemfile +1 -1
  3. data/History.md +44 -0
  4. data/README.md +16 -4
  5. data/Rakefile +39 -11
  6. data/VERSIONS.md +31 -0
  7. data/app/assets/images/jquery-ui/animated-overlay.gif +0 -0
  8. data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  9. data/{vendor → app}/assets/images/jquery-ui/ui-bg_flat_75_ffffff_40x100.png +0 -0
  10. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
  11. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
  12. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_dadada_1x400.png +0 -0
  13. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
  14. data/{vendor → app}/assets/images/jquery-ui/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  15. data/{vendor → app}/assets/images/jquery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
  16. data/{vendor → app}/assets/images/jquery-ui/ui-icons_222222_256x240.png +0 -0
  17. data/{vendor → app}/assets/images/jquery-ui/ui-icons_2e83ff_256x240.png +0 -0
  18. data/{vendor → app}/assets/images/jquery-ui/ui-icons_454545_256x240.png +0 -0
  19. data/{vendor → app}/assets/images/jquery-ui/ui-icons_888888_256x240.png +0 -0
  20. data/{vendor → app}/assets/images/jquery-ui/ui-icons_cd0a0a_256x240.png +0 -0
  21. data/{vendor → app}/assets/javascripts/jquery.ui.accordion.js +17 -18
  22. data/{vendor → app}/assets/javascripts/jquery.ui.all.js +0 -0
  23. data/{vendor → app}/assets/javascripts/jquery.ui.autocomplete.js +36 -44
  24. data/{vendor → app}/assets/javascripts/jquery.ui.button.js +23 -47
  25. data/{vendor → app}/assets/javascripts/jquery.ui.core.js +20 -24
  26. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-af.js +0 -0
  27. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ar-DZ.js +0 -0
  28. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ar.js +0 -0
  29. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-az.js +0 -0
  30. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-be.js +0 -0
  31. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-bg.js +0 -0
  32. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-bs.js +0 -0
  33. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ca.js +0 -0
  34. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-cs.js +0 -0
  35. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-cy-GB.js +0 -0
  36. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-da.js +0 -0
  37. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-de.js +3 -3
  38. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-el.js +0 -0
  39. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-en-AU.js +0 -0
  40. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-en-GB.js +0 -0
  41. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-en-NZ.js +0 -0
  42. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-eo.js +0 -0
  43. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-es.js +7 -7
  44. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-et.js +0 -0
  45. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-eu.js +0 -0
  46. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-fa.js +0 -0
  47. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-fi.js +1 -1
  48. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-fo.js +0 -0
  49. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-fr-CA.js +0 -0
  50. data/app/assets/javascripts/jquery.ui.datepicker-fr-CH.js +23 -0
  51. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-fr.js +6 -6
  52. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-gl.js +0 -0
  53. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-he.js +0 -0
  54. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-hi.js +0 -0
  55. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-hr.js +0 -0
  56. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-hu.js +0 -0
  57. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-hy.js +0 -0
  58. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-id.js +0 -0
  59. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-is.js +1 -1
  60. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-it.js +0 -0
  61. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ja.js +0 -0
  62. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ka.js +0 -0
  63. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-kk.js +0 -0
  64. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-km.js +0 -0
  65. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ko.js +0 -0
  66. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ky.js +0 -0
  67. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-lb.js +0 -0
  68. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-lt.js +2 -2
  69. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-lv.js +4 -4
  70. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-mk.js +0 -0
  71. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ml.js +0 -0
  72. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ms.js +0 -0
  73. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-nb.js +0 -0
  74. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-nl-BE.js +0 -0
  75. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-nl.js +0 -0
  76. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-nn.js +0 -0
  77. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-no.js +0 -0
  78. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-pl.js +0 -0
  79. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-pt-BR.js +0 -0
  80. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-pt.js +1 -1
  81. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-rm.js +0 -0
  82. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ro.js +0 -0
  83. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ru.js +0 -0
  84. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-sk.js +3 -3
  85. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-sl.js +0 -0
  86. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-sq.js +0 -0
  87. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-sr-SR.js +1 -1
  88. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-sr.js +1 -1
  89. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-sv.js +0 -0
  90. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-ta.js +0 -0
  91. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-th.js +0 -0
  92. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-tj.js +0 -0
  93. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-tr.js +0 -0
  94. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-uk.js +0 -0
  95. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-vi.js +0 -0
  96. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-zh-CN.js +0 -0
  97. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-zh-HK.js +0 -0
  98. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker-zh-TW.js +0 -0
  99. data/{vendor → app}/assets/javascripts/jquery.ui.datepicker.js +28 -34
  100. data/{vendor → app}/assets/javascripts/jquery.ui.dialog.js +84 -28
  101. data/{vendor → app}/assets/javascripts/jquery.ui.draggable.js +96 -84
  102. data/{vendor → app}/assets/javascripts/jquery.ui.droppable.js +33 -15
  103. data/{vendor → app}/assets/javascripts/jquery.ui.effect-blind.js +2 -2
  104. data/{vendor → app}/assets/javascripts/jquery.ui.effect-bounce.js +2 -2
  105. data/{vendor → app}/assets/javascripts/jquery.ui.effect-clip.js +2 -2
  106. data/{vendor → app}/assets/javascripts/jquery.ui.effect-drop.js +2 -2
  107. data/{vendor → app}/assets/javascripts/jquery.ui.effect-explode.js +2 -2
  108. data/{vendor → app}/assets/javascripts/jquery.ui.effect-fade.js +2 -2
  109. data/{vendor → app}/assets/javascripts/jquery.ui.effect-fold.js +2 -2
  110. data/{vendor → app}/assets/javascripts/jquery.ui.effect-highlight.js +2 -2
  111. data/{vendor → app}/assets/javascripts/jquery.ui.effect-pulsate.js +2 -2
  112. data/{vendor → app}/assets/javascripts/jquery.ui.effect-scale.js +2 -2
  113. data/{vendor → app}/assets/javascripts/jquery.ui.effect-shake.js +2 -2
  114. data/{vendor → app}/assets/javascripts/jquery.ui.effect-slide.js +2 -2
  115. data/{vendor → app}/assets/javascripts/jquery.ui.effect-transfer.js +2 -2
  116. data/{vendor → app}/assets/javascripts/jquery.ui.effect.all.js +0 -0
  117. data/{vendor → app}/assets/javascripts/jquery.ui.effect.js +94 -73
  118. data/{vendor → app}/assets/javascripts/jquery.ui.menu.js +15 -9
  119. data/{vendor → app}/assets/javascripts/jquery.ui.mouse.js +3 -3
  120. data/{vendor → app}/assets/javascripts/jquery.ui.position.js +16 -12
  121. data/{vendor → app}/assets/javascripts/jquery.ui.progressbar.js +3 -3
  122. data/{vendor → app}/assets/javascripts/jquery.ui.resizable.js +20 -10
  123. data/{vendor → app}/assets/javascripts/jquery.ui.selectable.js +3 -3
  124. data/{vendor → app}/assets/javascripts/jquery.ui.slider.js +97 -70
  125. data/{vendor → app}/assets/javascripts/jquery.ui.sortable.js +81 -42
  126. data/{vendor → app}/assets/javascripts/jquery.ui.spinner.js +10 -5
  127. data/{vendor → app}/assets/javascripts/jquery.ui.tabs.js +8 -5
  128. data/{vendor → app}/assets/javascripts/jquery.ui.tooltip.js +3 -3
  129. data/{vendor → app}/assets/javascripts/jquery.ui.widget.js +5 -5
  130. data/{vendor → app}/assets/stylesheets/jquery.ui.accordion.css.erb +3 -3
  131. data/{vendor → app}/assets/stylesheets/jquery.ui.all.css.erb +3 -3
  132. data/{vendor → app}/assets/stylesheets/jquery.ui.autocomplete.css.erb +3 -3
  133. data/{vendor → app}/assets/stylesheets/jquery.ui.base.css.erb +3 -3
  134. data/{vendor → app}/assets/stylesheets/jquery.ui.button.css.erb +3 -3
  135. data/{vendor → app}/assets/stylesheets/jquery.ui.core.css.erb +4 -3
  136. data/{vendor → app}/assets/stylesheets/jquery.ui.datepicker.css.erb +3 -6
  137. data/{vendor → app}/assets/stylesheets/jquery.ui.dialog.css.erb +5 -4
  138. data/{vendor → app}/assets/stylesheets/jquery.ui.menu.css.erb +5 -3
  139. data/{vendor → app}/assets/stylesheets/jquery.ui.progressbar.css.erb +9 -4
  140. data/{vendor → app}/assets/stylesheets/jquery.ui.resizable.css.erb +2 -4
  141. data/{vendor → app}/assets/stylesheets/jquery.ui.selectable.css.erb +2 -4
  142. data/{vendor → app}/assets/stylesheets/jquery.ui.slider.css.erb +3 -3
  143. data/{vendor → app}/assets/stylesheets/jquery.ui.spinner.css.erb +5 -5
  144. data/{vendor → app}/assets/stylesheets/jquery.ui.tabs.css.erb +9 -10
  145. data/{vendor → app}/assets/stylesheets/jquery.ui.theme.css.erb +26 -5
  146. data/{vendor → app}/assets/stylesheets/jquery.ui.tooltip.css.erb +4 -2
  147. data/lib/jquery/ui/rails/version.rb +2 -1
  148. metadata +148 -161
  149. data/vendor/assets/javascripts/jquery.ui.datepicker-fr-CH.js +0 -23
@@ -1,14 +1,14 @@
1
1
  /*!
2
- * jQuery UI Effects 1.10.0
2
+ * jQuery UI Effects 1.10.4
3
3
  * http://jqueryui.com
4
4
  *
5
- * Copyright 2013 jQuery Foundation and other contributors
5
+ * Copyright 2014 jQuery Foundation and other contributors
6
6
  * Released under the MIT license.
7
7
  * http://jquery.org/license
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.4",
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 ] ) {
1112
1120
  return true;
1113
1121
  }
1114
1122
 
1115
- // invalid strings - treat as "normal" speed
1116
- return typeof speed === "string" && !$.effects.effect[ speed ];
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 ) {
1130
+ return true;
1131
+ }
1132
+
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,10 +3,10 @@
3
3
  //= require jquery.ui.position
4
4
 
5
5
  /*!
6
- * jQuery UI Menu 1.10.0
6
+ * jQuery UI Menu 1.10.4
7
7
  * http://jqueryui.com
8
8
  *
9
- * Copyright 2013 jQuery Foundation and other contributors
9
+ * Copyright 2014 jQuery Foundation and other contributors
10
10
  * Released under the MIT license.
11
11
  * http://jquery.org/license
12
12
  *
@@ -20,7 +20,7 @@
20
20
  (function( $, undefined ) {
21
21
 
22
22
  $.widget( "ui.menu", {
23
- version: "1.10.0",
23
+ version: "1.10.4",
24
24
  defaultElement: "<ul>",
25
25
  delay: 300,
26
26
  options: {
@@ -79,13 +79,18 @@ $.widget( "ui.menu", {
79
79
  "click .ui-menu-item:has(a)": function( event ) {
80
80
  var target = $( event.target ).closest( ".ui-menu-item" );
81
81
  if ( !this.mouseHandled && target.not( ".ui-state-disabled" ).length ) {
82
- this.mouseHandled = true;
83
-
84
82
  this.select( event );
83
+
84
+ // Only set the mouseHandled flag if the event will bubble, see #9469.
85
+ if ( !event.isPropagationStopped() ) {
86
+ this.mouseHandled = true;
87
+ }
88
+
85
89
  // Open submenu on click
86
90
  if ( target.has( ".ui-menu" ).length ) {
87
91
  this.expand( event );
88
- } else if ( !this.element.is( ":focus" ) ) {
92
+ } else if ( !this.element.is( ":focus" ) && $( this.document[ 0 ].activeElement ).closest( ".ui-menu" ).length ) {
93
+
89
94
  // Redirect focus to the menu
90
95
  this.element.trigger( "focus", [ true ] );
91
96
 
@@ -178,7 +183,6 @@ $.widget( "ui.menu", {
178
183
  },
179
184
 
180
185
  _keydown: function( event ) {
181
- /*jshint maxcomplexity:20*/
182
186
  var match, prev, character, skip, regex,
183
187
  preventDefault = true;
184
188
 
@@ -287,6 +291,8 @@ $.widget( "ui.menu", {
287
291
  icon = this.options.icons.submenu,
288
292
  submenus = this.element.find( this.options.menus );
289
293
 
294
+ this.element.toggleClass( "ui-menu-icons", !!this.element.find( ".ui-icon" ).length );
295
+
290
296
  // Initialize nested menus
291
297
  submenus.filter( ":not(.ui-menu)" )
292
298
  .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" )
@@ -327,7 +333,7 @@ $.widget( "ui.menu", {
327
333
  menus.children( ":not(.ui-menu-item)" ).each(function() {
328
334
  var item = $( this );
329
335
  // hyphen, em dash, en dash
330
- if ( !/[^\-—–\s]/.test( item.text() ) ) {
336
+ if ( !/[^\-\u2014\u2013\s]/.test( item.text() ) ) {
331
337
  item.addClass( "ui-widget-content ui-menu-divider" );
332
338
  }
333
339
  });
@@ -387,7 +393,7 @@ $.widget( "ui.menu", {
387
393
  }
388
394
 
389
395
  nested = item.children( ".ui-menu" );
390
- if ( nested.length && ( /^mouse/.test( event.type ) ) ) {
396
+ if ( nested.length && event && ( /^mouse/.test( event.type ) ) ) {
391
397
  this._startOpening(nested);
392
398
  }
393
399
  this.activeMenu = item.parent();
@@ -2,10 +2,10 @@
2
2
  //= require jquery.ui.widget
3
3
 
4
4
  /*!
5
- * jQuery UI Mouse 1.10.0
5
+ * jQuery UI Mouse 1.10.4
6
6
  * http://jqueryui.com
7
7
  *
8
- * Copyright 2013 jQuery Foundation and other contributors
8
+ * Copyright 2014 jQuery Foundation and other contributors
9
9
  * Released under the MIT license.
10
10
  * http://jquery.org/license
11
11
  *
@@ -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.4",
26
26
  options: {
27
27
  cancel: "input,textarea,button,select,option",
28
28
  distance: 1,
@@ -1,8 +1,8 @@
1
1
  /*!
2
- * jQuery UI Position 1.10.0
2
+ * jQuery UI Position 1.10.4
3
3
  * http://jqueryui.com
4
4
  *
5
- * Copyright 2013 jQuery Foundation and other contributors
5
+ * Copyright 2014 jQuery Foundation and other contributors
6
6
  * Released under the MIT license.
7
7
  * http://jquery.org/license
8
8
  *
@@ -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
 
@@ -70,7 +70,7 @@ $.position = {
70
70
  return cachedScrollbarWidth;
71
71
  }
72
72
  var w1, w2,
73
- div = $( "<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
73
+ div = $( "<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>" ),
74
74
  innerDiv = div.children()[0];
75
75
 
76
76
  $( "body" ).append( div );
@@ -88,23 +88,27 @@ $.position = {
88
88
  return (cachedScrollbarWidth = w1 - w2);
89
89
  },
90
90
  getScrollInfo: function( within ) {
91
- var overflowX = within.isWindow ? "" : within.element.css( "overflow-x" ),
92
- overflowY = within.isWindow ? "" : within.element.css( "overflow-y" ),
91
+ var overflowX = within.isWindow || within.isDocument ? "" :
92
+ within.element.css( "overflow-x" ),
93
+ overflowY = within.isWindow || within.isDocument ? "" :
94
+ within.element.css( "overflow-y" ),
93
95
  hasOverflowX = overflowX === "scroll" ||
94
96
  ( overflowX === "auto" && within.width < within.element[0].scrollWidth ),
95
97
  hasOverflowY = overflowY === "scroll" ||
96
98
  ( overflowY === "auto" && within.height < within.element[0].scrollHeight );
97
99
  return {
98
- width: hasOverflowX ? $.position.scrollbarWidth() : 0,
99
- height: hasOverflowY ? $.position.scrollbarWidth() : 0
100
+ width: hasOverflowY ? $.position.scrollbarWidth() : 0,
101
+ height: hasOverflowX ? $.position.scrollbarWidth() : 0
100
102
  };
101
103
  },
102
104
  getWithinInfo: function( element ) {
103
105
  var withinElement = $( element || window ),
104
- isWindow = $.isWindow( withinElement[0] );
106
+ isWindow = $.isWindow( withinElement[0] ),
107
+ isDocument = !!withinElement[ 0 ] && withinElement[ 0 ].nodeType === 9;
105
108
  return {
106
109
  element: withinElement,
107
110
  isWindow: isWindow,
111
+ isDocument: isDocument,
108
112
  offset: withinElement.offset() || { left: 0, top: 0 },
109
113
  scrollLeft: withinElement.scrollLeft(),
110
114
  scrollTop: withinElement.scrollTop(),
@@ -436,7 +440,7 @@ $.ui.position = {
436
440
  }
437
441
  }
438
442
  else if ( overBottom > 0 ) {
439
- newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
443
+ newOverTop = position.top - data.collisionPosition.marginTop + myOffset + atOffset + offset - offsetTop;
440
444
  if ( ( position.top + myOffset + atOffset + offset) > overBottom && ( newOverTop > 0 || abs( newOverTop ) < overBottom ) ) {
441
445
  position.top += myOffset + atOffset + offset;
442
446
  }
@@ -2,10 +2,10 @@
2
2
  //= require jquery.ui.widget
3
3
 
4
4
  /*!
5
- * jQuery UI Progressbar 1.10.0
5
+ * jQuery UI Progressbar 1.10.4
6
6
  * http://jqueryui.com
7
7
  *
8
- * Copyright 2013 jQuery Foundation and other contributors
8
+ * Copyright 2014 jQuery Foundation and other contributors
9
9
  * Released under the MIT license.
10
10
  * http://jquery.org/license
11
11
  *
@@ -18,7 +18,7 @@
18
18
  (function( $, undefined ) {
19
19
 
20
20
  $.widget( "ui.progressbar", {
21
- version: "1.10.0",
21
+ version: "1.10.4",
22
22
  options: {
23
23
  max: 100,
24
24
  value: 0,
@@ -3,10 +3,10 @@
3
3
  //= require jquery.ui.mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Resizable 1.10.0
6
+ * jQuery UI Resizable 1.10.4
7
7
  * http://jqueryui.com
8
8
  *
9
- * Copyright 2013 jQuery Foundation and other contributors
9
+ * Copyright 2014 jQuery Foundation and other contributors
10
10
  * Released under the MIT license.
11
11
  * http://jquery.org/license
12
12
  *
@@ -28,7 +28,7 @@ function isNumber(value) {
28
28
  }
29
29
 
30
30
  $.widget("ui.resizable", $.ui.mouse, {
31
- version: "1.10.0",
31
+ version: "1.10.4",
32
32
  widgetEventPrefix: "resize",
33
33
  options: {
34
34
  alsoResize: false,
@@ -297,7 +297,7 @@ $.widget("ui.resizable", $.ui.mouse, {
297
297
  //Store needed variables
298
298
  this.offset = this.helper.offset();
299
299
  this.position = { left: curleft, top: curtop };
300
- this.size = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
300
+ this.size = this._helper ? { width: this.helper.width(), height: this.helper.height() } : { width: el.width(), height: el.height() };
301
301
  this.originalSize = this._helper ? { width: el.outerWidth(), height: el.outerHeight() } : { width: el.width(), height: el.height() };
302
302
  this.originalPosition = { left: curleft, top: curtop };
303
303
  this.sizeDiff = { width: el.outerWidth() - el.width(), height: el.outerHeight() - el.height() };
@@ -778,8 +778,8 @@ $.ui.plugin.add("resizable", "containment", {
778
778
  isParent = that.containerElement.get(0) === that.element.parent().get(0);
779
779
  isOffsetRelative = /relative|absolute/.test(that.containerElement.css("position"));
780
780
 
781
- if(isParent && isOffsetRelative) {
782
- woset -= that.parentData.left;
781
+ if ( isParent && isOffsetRelative ) {
782
+ woset -= Math.abs( that.parentData.left );
783
783
  }
784
784
 
785
785
  if (woset + that.size.width >= that.parentData.width) {
@@ -960,10 +960,20 @@ $.ui.plugin.add("resizable", "grid", {
960
960
  that.size.height = newHeight;
961
961
  that.position.left = op.left - ox;
962
962
  } else {
963
- that.size.width = newWidth;
964
- that.size.height = newHeight;
965
- that.position.top = op.top - oy;
966
- that.position.left = op.left - ox;
963
+ if ( newHeight - gridY > 0 ) {
964
+ that.size.height = newHeight;
965
+ that.position.top = op.top - oy;
966
+ } else {
967
+ that.size.height = gridY;
968
+ that.position.top = op.top + os.height - gridY;
969
+ }
970
+ if ( newWidth - gridX > 0 ) {
971
+ that.size.width = newWidth;
972
+ that.position.left = op.left - ox;
973
+ } else {
974
+ that.size.width = gridX;
975
+ that.position.left = op.left + os.width - gridX;
976
+ }
967
977
  }
968
978
  }
969
979
 
@@ -3,10 +3,10 @@
3
3
  //= require jquery.ui.mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Selectable 1.10.0
6
+ * jQuery UI Selectable 1.10.4
7
7
  * http://jqueryui.com
8
8
  *
9
- * Copyright 2013 jQuery Foundation and other contributors
9
+ * Copyright 2014 jQuery Foundation and other contributors
10
10
  * Released under the MIT license.
11
11
  * http://jquery.org/license
12
12
  *
@@ -20,7 +20,7 @@
20
20
  (function( $, undefined ) {
21
21
 
22
22
  $.widget("ui.selectable", $.ui.mouse, {
23
- version: "1.10.0",
23
+ version: "1.10.4",
24
24
  options: {
25
25
  appendTo: "body",
26
26
  autoRefresh: true,