jquery-ui-rails 0.4.1 → 0.5.0

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.
Files changed (51) hide show
  1. data/History.md +4 -0
  2. data/lib/jquery/ui/rails/version.rb +1 -1
  3. data/vendor/assets/javascripts/jquery.effects.blind.js +1 -1
  4. data/vendor/assets/javascripts/jquery.effects.bounce.js +1 -1
  5. data/vendor/assets/javascripts/jquery.effects.clip.js +1 -1
  6. data/vendor/assets/javascripts/jquery.effects.core.js +12 -3
  7. data/vendor/assets/javascripts/jquery.effects.drop.js +1 -1
  8. data/vendor/assets/javascripts/jquery.effects.explode.js +1 -1
  9. data/vendor/assets/javascripts/jquery.effects.fade.js +1 -1
  10. data/vendor/assets/javascripts/jquery.effects.fold.js +1 -1
  11. data/vendor/assets/javascripts/jquery.effects.highlight.js +1 -1
  12. data/vendor/assets/javascripts/jquery.effects.pulsate.js +1 -1
  13. data/vendor/assets/javascripts/jquery.effects.scale.js +1 -1
  14. data/vendor/assets/javascripts/jquery.effects.shake.js +1 -1
  15. data/vendor/assets/javascripts/jquery.effects.slide.js +1 -1
  16. data/vendor/assets/javascripts/jquery.effects.transfer.js +1 -1
  17. data/vendor/assets/javascripts/jquery.ui.accordion.js +2 -2
  18. data/vendor/assets/javascripts/jquery.ui.autocomplete.js +1 -1
  19. data/vendor/assets/javascripts/jquery.ui.button.js +1 -1
  20. data/vendor/assets/javascripts/jquery.ui.core.js +2 -2
  21. data/vendor/assets/javascripts/jquery.ui.datepicker-ar.js +1 -1
  22. data/vendor/assets/javascripts/jquery.ui.datepicker-eu.js +9 -9
  23. data/vendor/assets/javascripts/{jquery.ui.datepicker-ge.js → jquery.ui.datepicker-ka.js} +2 -2
  24. data/vendor/assets/javascripts/jquery.ui.datepicker.js +3 -3
  25. data/vendor/assets/javascripts/jquery.ui.dialog.js +2 -2
  26. data/vendor/assets/javascripts/jquery.ui.draggable.js +5 -3
  27. data/vendor/assets/javascripts/jquery.ui.droppable.js +2 -2
  28. data/vendor/assets/javascripts/jquery.ui.mouse.js +1 -1
  29. data/vendor/assets/javascripts/jquery.ui.position.js +7 -2
  30. data/vendor/assets/javascripts/jquery.ui.progressbar.js +2 -2
  31. data/vendor/assets/javascripts/jquery.ui.resizable.js +2 -2
  32. data/vendor/assets/javascripts/jquery.ui.selectable.js +2 -2
  33. data/vendor/assets/javascripts/jquery.ui.slider.js +2 -2
  34. data/vendor/assets/javascripts/jquery.ui.sortable.js +32 -31
  35. data/vendor/assets/javascripts/jquery.ui.tabs.js +2 -2
  36. data/vendor/assets/javascripts/jquery.ui.widget.js +1 -1
  37. data/vendor/assets/stylesheets/jquery.ui.accordion.css.erb +1 -1
  38. data/vendor/assets/stylesheets/jquery.ui.all.css.erb +1 -1
  39. data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +2 -2
  40. data/vendor/assets/stylesheets/jquery.ui.base.css.erb +1 -1
  41. data/vendor/assets/stylesheets/jquery.ui.button.css.erb +1 -1
  42. data/vendor/assets/stylesheets/jquery.ui.core.css.erb +1 -1
  43. data/vendor/assets/stylesheets/jquery.ui.datepicker.css.erb +1 -1
  44. data/vendor/assets/stylesheets/jquery.ui.dialog.css.erb +1 -1
  45. data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +1 -1
  46. data/vendor/assets/stylesheets/jquery.ui.resizable.css.erb +1 -1
  47. data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +1 -1
  48. data/vendor/assets/stylesheets/jquery.ui.slider.css.erb +1 -1
  49. data/vendor/assets/stylesheets/jquery.ui.tabs.css.erb +1 -1
  50. data/vendor/assets/stylesheets/jquery.ui.theme.css.erb +1 -1
  51. metadata +4 -4
data/History.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # master
2
2
 
3
+ # 0.5.0
4
+
5
+ * Upgrade to jQuery UI 1.8.21
6
+
3
7
  # 0.4.1
4
8
 
5
9
  * Add jquery.effects.all
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Ui
3
3
  module Rails
4
- VERSION = "0.4.1"
4
+ VERSION = "0.5.0"
5
5
  end
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Blind 1.8.20
4
+ * jQuery UI Effects Blind 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Bounce 1.8.20
4
+ * jQuery UI Effects Bounce 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Clip 1.8.20
4
+ * jQuery UI Effects Clip 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Effects 1.8.20
2
+ * jQuery UI Effects 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -306,7 +306,7 @@ $.fn.extend({
306
306
  /******************************************************************************/
307
307
 
308
308
  $.extend($.effects, {
309
- version: "1.8.20",
309
+ version: "1.8.21",
310
310
 
311
311
  // Saves a set of properties in a data storage
312
312
  save: function(element, set) {
@@ -370,7 +370,16 @@ $.extend($.effects, {
370
370
  }),
371
371
  active = document.activeElement;
372
372
 
373
- element.wrap(wrapper);
373
+ // support: Firefox
374
+ // Firefox incorrectly exposes anonymous content
375
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=561664
376
+ try {
377
+ active.id;
378
+ } catch( e ) {
379
+ active = document.body;
380
+ }
381
+
382
+ element.wrap( wrapper );
374
383
 
375
384
  // Fixes #7595 - Elements lose focus when wrapped.
376
385
  if ( element[ 0 ] === active || $.contains( element[ 0 ], active ) ) {
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Drop 1.8.20
4
+ * jQuery UI Effects Drop 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Explode 1.8.20
4
+ * jQuery UI Effects Explode 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Fade 1.8.20
4
+ * jQuery UI Effects Fade 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Fold 1.8.20
4
+ * jQuery UI Effects Fold 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Highlight 1.8.20
4
+ * jQuery UI Effects Highlight 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Pulsate 1.8.20
4
+ * jQuery UI Effects Pulsate 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Scale 1.8.20
4
+ * jQuery UI Effects Scale 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Shake 1.8.20
4
+ * jQuery UI Effects Shake 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Slide 1.8.20
4
+ * jQuery UI Effects Slide 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery.effects.core
2
2
 
3
3
  /*!
4
- * jQuery UI Effects Transfer 1.8.20
4
+ * jQuery UI Effects Transfer 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -2,7 +2,7 @@
2
2
  //= require jquery.ui.widget
3
3
 
4
4
  /*!
5
- * jQuery UI Accordion 1.8.20
5
+ * jQuery UI Accordion 1.8.21
6
6
  *
7
7
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
8
8
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -521,7 +521,7 @@ $.widget( "ui.accordion", {
521
521
  });
522
522
 
523
523
  $.extend( $.ui.accordion, {
524
- version: "1.8.20",
524
+ version: "1.8.21",
525
525
  animations: {
526
526
  slide: function( options, additions ) {
527
527
  options = $.extend({
@@ -3,7 +3,7 @@
3
3
  //= require jquery.ui.position
4
4
 
5
5
  /*!
6
- * jQuery UI Autocomplete 1.8.20
6
+ * jQuery UI Autocomplete 1.8.21
7
7
  *
8
8
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
9
9
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -2,7 +2,7 @@
2
2
  //= require jquery.ui.widget
3
3
 
4
4
  /*!
5
- * jQuery UI Button 1.8.20
5
+ * jQuery UI Button 1.8.21
6
6
  *
7
7
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
8
8
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,7 +1,7 @@
1
1
  //= require jquery
2
2
 
3
3
  /*!
4
- * jQuery UI 1.8.20
4
+ * jQuery UI 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -20,7 +20,7 @@ if ( $.ui.version ) {
20
20
  }
21
21
 
22
22
  $.extend( $.ui, {
23
- version: "1.8.20",
23
+ version: "1.8.21",
24
24
 
25
25
  keyCode: {
26
26
  ALT: 18,
@@ -14,7 +14,7 @@ jQuery(function($){
14
14
  monthNamesShort: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
15
15
  dayNames: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
16
16
  dayNamesShort: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
17
- dayNamesMin: ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
17
+ dayNamesMin: ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
18
18
  weekHeader: 'أسبوع',
19
19
  dateFormat: 'dd/mm/yy',
20
20
  firstDay: 6,
@@ -8,15 +8,15 @@ jQuery(function($){
8
8
  prevText: '<Aur',
9
9
  nextText: 'Hur>',
10
10
  currentText: 'Gaur',
11
- monthNames: ['Urtarrila','Otsaila','Martxoa','Apirila','Maiatza','Ekaina',
12
- 'Uztaila','Abuztua','Iraila','Urria','Azaroa','Abendua'],
13
- monthNamesShort: ['Urt','Ots','Mar','Api','Mai','Eka',
14
- 'Uzt','Abu','Ira','Urr','Aza','Abe'],
15
- dayNames: ['Igandea','Astelehena','Asteartea','Asteazkena','Osteguna','Ostirala','Larunbata'],
16
- dayNamesShort: ['Iga','Ast','Ast','Ast','Ost','Ost','Lar'],
17
- dayNamesMin: ['Ig','As','As','As','Os','Os','La'],
18
- weekHeader: 'Wk',
19
- dateFormat: 'yy/mm/dd',
11
+ monthNames: ['urtarrila','otsaila','martxoa','apirila','maiatza','ekaina',
12
+ 'uztaila','abuztua','iraila','urria','azaroa','abendua'],
13
+ monthNamesShort: ['urt.','ots.','mar.','api.','mai.','eka.',
14
+ 'uzt.','abu.','ira.','urr.','aza.','abe.'],
15
+ dayNames: ['igandea','astelehena','asteartea','asteazkena','osteguna','ostirala','larunbata'],
16
+ dayNamesShort: ['ig.','al.','ar.','az.','og.','ol.','lr.'],
17
+ dayNamesMin: ['ig','al','ar','az','og','ol','lr'],
18
+ weekHeader: 'As',
19
+ dateFormat: 'yy-mm-dd',
20
20
  firstDay: 1,
21
21
  isRTL: false,
22
22
  showMonthAfterYear: false,
@@ -3,7 +3,7 @@
3
3
  /* Georgian (UTF-8) initialisation for the jQuery UI date picker plugin. */
4
4
  /* Written by Lado Lomidze (lado.lomidze@gmail.com). */
5
5
  jQuery(function($){
6
- $.datepicker.regional['ge'] = {
6
+ $.datepicker.regional['ka'] = {
7
7
  closeText: 'დახურვა',
8
8
  prevText: '< წინა',
9
9
  nextText: 'შემდეგი >',
@@ -19,5 +19,5 @@ jQuery(function($){
19
19
  isRTL: false,
20
20
  showMonthAfterYear: false,
21
21
  yearSuffix: ''};
22
- $.datepicker.setDefaults($.datepicker.regional['ge']);
22
+ $.datepicker.setDefaults($.datepicker.regional['ka']);
23
23
  });
@@ -1,7 +1,7 @@
1
1
  //= require jquery.ui.core
2
2
 
3
3
  /*!
4
- * jQuery UI Datepicker 1.8.20
4
+ * jQuery UI Datepicker 1.8.21
5
5
  *
6
6
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
7
7
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -14,7 +14,7 @@
14
14
  */
15
15
  (function( $, undefined ) {
16
16
 
17
- $.extend($.ui, { datepicker: { version: "1.8.20" } });
17
+ $.extend($.ui, { datepicker: { version: "1.8.21" } });
18
18
 
19
19
  var PROP_NAME = 'datepicker';
20
20
  var dpuuid = new Date().getTime();
@@ -1817,7 +1817,7 @@ $.fn.datepicker = function(options){
1817
1817
  $.datepicker = new Datepicker(); // singleton instance
1818
1818
  $.datepicker.initialized = false;
1819
1819
  $.datepicker.uuid = new Date().getTime();
1820
- $.datepicker.version = "1.8.20";
1820
+ $.datepicker.version = "1.8.21";
1821
1821
 
1822
1822
  // Workaround for #4055
1823
1823
  // Add another global to avoid noConflict issues with inline event handlers
@@ -3,7 +3,7 @@
3
3
  //= require jquery.ui.position
4
4
 
5
5
  /*!
6
- * jQuery UI Dialog 1.8.20
6
+ * jQuery UI Dialog 1.8.21
7
7
  *
8
8
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
9
9
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -706,7 +706,7 @@ $.widget("ui.dialog", {
706
706
  });
707
707
 
708
708
  $.extend($.ui.dialog, {
709
- version: "1.8.20",
709
+ version: "1.8.21",
710
710
 
711
711
  uuid: 0,
712
712
  maxZ: 0,
@@ -3,7 +3,7 @@
3
3
  //= require jquery.ui.mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Draggable 1.8.20
6
+ * jQuery UI Draggable 1.8.21
7
7
  *
8
8
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
9
9
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -107,6 +107,8 @@ $.widget("ui.draggable", $.ui.mouse, {
107
107
  //Create and append the visible helper
108
108
  this.helper = this._createHelper(event);
109
109
 
110
+ this.helper.addClass("ui-draggable-dragging");
111
+
110
112
  //Cache the helper size
111
113
  this._cacheHelperProportions();
112
114
 
@@ -167,7 +169,7 @@ $.widget("ui.draggable", $.ui.mouse, {
167
169
  if ($.ui.ddmanager && !o.dropBehaviour)
168
170
  $.ui.ddmanager.prepareOffsets(this, event);
169
171
 
170
- this.helper.addClass("ui-draggable-dragging");
172
+
171
173
  this._mouseDrag(event, true); //Execute the drag once - this causes the helper not to be visible before getting its correct position
172
174
 
173
175
  //If the ddmanager is used for droppables, inform the manager that dragging has started (see #5003)
@@ -515,7 +517,7 @@ $.widget("ui.draggable", $.ui.mouse, {
515
517
  });
516
518
 
517
519
  $.extend($.ui.draggable, {
518
- version: "1.8.20"
520
+ version: "1.8.21"
519
521
  });
520
522
 
521
523
  $.ui.plugin.add("draggable", "connectToSortable", {
@@ -4,7 +4,7 @@
4
4
  //= require jquery.ui.draggable
5
5
 
6
6
  /*!
7
- * jQuery UI Droppable 1.8.20
7
+ * jQuery UI Droppable 1.8.21
8
8
  *
9
9
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
10
10
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -152,7 +152,7 @@ $.widget("ui.droppable", {
152
152
  });
153
153
 
154
154
  $.extend($.ui.droppable, {
155
- version: "1.8.20"
155
+ version: "1.8.21"
156
156
  });
157
157
 
158
158
  $.ui.intersect = function(draggable, droppable, toleranceMode) {
@@ -2,7 +2,7 @@
2
2
  //= require jquery.ui.widget
3
3
 
4
4
  /*!
5
- * jQuery UI Mouse 1.8.20
5
+ * jQuery UI Mouse 1.8.21
6
6
  *
7
7
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
8
8
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Position 1.8.20
2
+ * jQuery UI Position 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -243,7 +243,12 @@ if ( !$.offset.setOffset ) {
243
243
  $.fn.offset = function( options ) {
244
244
  var elem = this[ 0 ];
245
245
  if ( !elem || !elem.ownerDocument ) { return null; }
246
- if ( options ) {
246
+ if ( options ) {
247
+ if ( $.isFunction( options ) ) {
248
+ return this.each(function( i ) {
249
+ $( this ).offset( options.call( this, i, $( this ).offset() ) );
250
+ });
251
+ }
247
252
  return this.each(function() {
248
253
  $.offset.setOffset( this, options );
249
254
  });
@@ -2,7 +2,7 @@
2
2
  //= require jquery.ui.widget
3
3
 
4
4
  /*!
5
- * jQuery UI Progressbar 1.8.20
5
+ * jQuery UI Progressbar 1.8.21
6
6
  *
7
7
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
8
8
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -106,7 +106,7 @@ $.widget( "ui.progressbar", {
106
106
  });
107
107
 
108
108
  $.extend( $.ui.progressbar, {
109
- version: "1.8.20"
109
+ version: "1.8.21"
110
110
  });
111
111
 
112
112
  })( jQuery );
@@ -3,7 +3,7 @@
3
3
  //= require jquery.ui.mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Resizable 1.8.20
6
+ * jQuery UI Resizable 1.8.21
7
7
  *
8
8
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
9
9
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -544,7 +544,7 @@ $.widget("ui.resizable", $.ui.mouse, {
544
544
  });
545
545
 
546
546
  $.extend($.ui.resizable, {
547
- version: "1.8.20"
547
+ version: "1.8.21"
548
548
  });
549
549
 
550
550
  /*
@@ -3,7 +3,7 @@
3
3
  //= require jquery.ui.mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Selectable 1.8.20
6
+ * jQuery UI Selectable 1.8.21
7
7
  *
8
8
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
9
9
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -265,7 +265,7 @@ $.widget("ui.selectable", $.ui.mouse, {
265
265
  });
266
266
 
267
267
  $.extend($.ui.selectable, {
268
- version: "1.8.20"
268
+ version: "1.8.21"
269
269
  });
270
270
 
271
271
  })(jQuery);
@@ -3,7 +3,7 @@
3
3
  //= require jquery.ui.mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Slider 1.8.20
6
+ * jQuery UI Slider 1.8.21
7
7
  *
8
8
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
9
9
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -660,7 +660,7 @@ $.widget( "ui.slider", $.ui.mouse, {
660
660
  });
661
661
 
662
662
  $.extend( $.ui.slider, {
663
- version: "1.8.20"
663
+ version: "1.8.21"
664
664
  });
665
665
 
666
666
  }(jQuery));
@@ -3,7 +3,7 @@
3
3
  //= require jquery.ui.mouse
4
4
 
5
5
  /*!
6
- * jQuery UI Sortable 1.8.20
6
+ * jQuery UI Sortable 1.8.21
7
7
  *
8
8
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
9
9
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -159,11 +159,6 @@ $.widget("ui.sortable", $.ui.mouse, {
159
159
  left: this.offset.left - this.margins.left
160
160
  };
161
161
 
162
- // Only after we got the offset, we can change the helper's position to absolute
163
- // TODO: Still need to figure out a way to make relative sorting possible
164
- this.helper.css("position", "absolute");
165
- this.cssPosition = this.helper.css("position");
166
-
167
162
  $.extend(this.offset, {
168
163
  click: { //Where the click happened, relative to the element
169
164
  left: event.pageX - this.offset.left,
@@ -173,6 +168,11 @@ $.widget("ui.sortable", $.ui.mouse, {
173
168
  relative: this._getRelativeOffset() //This is a relative to absolute position minus the actual position calculation - only used for relative positioned helper
174
169
  });
175
170
 
171
+ // Only after we got the offset, we can change the helper's position to absolute
172
+ // TODO: Still need to figure out a way to make relative sorting possible
173
+ this.helper.css("position", "absolute");
174
+ this.cssPosition = this.helper.css("position");
175
+
176
176
  //Generate the original position
177
177
  this.originalPosition = this._generatePosition(event);
178
178
  this.originalPageX = event.pageX;
@@ -734,30 +734,31 @@ $.widget("ui.sortable", $.ui.mouse, {
734
734
  if(this.containers.length === 1) {
735
735
  this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
736
736
  this.containers[innermostIndex].containerCache.over = 1;
737
- } else if(this.currentContainer != this.containers[innermostIndex]) {
738
-
739
- //When entering a new container, we will find the item with the least distance and append our item near it
740
- var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[innermostIndex].floating ? 'left' : 'top'];
741
- for (var j = this.items.length - 1; j >= 0; j--) {
742
- if(!$.ui.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) continue;
743
- var cur = this.items[j][this.containers[innermostIndex].floating ? 'left' : 'top'];
744
- if(Math.abs(cur - base) < dist) {
745
- dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];
746
- }
747
- }
748
-
749
- if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled
750
- return;
751
-
752
- this.currentContainer = this.containers[innermostIndex];
753
- itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);
754
- this._trigger("change", event, this._uiHash());
755
- this.containers[innermostIndex]._trigger("change", event, this._uiHash(this));
756
-
757
- //Update the placeholder
758
- this.options.placeholder.update(this.currentContainer, this.placeholder);
759
-
760
- this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
737
+ } else if(this.currentContainer != this.containers[innermostIndex]) {
738
+
739
+ //When entering a new container, we will find the item with the least distance and append our item near it
740
+ var dist = 10000; var itemWithLeastDistance = null; var base = this.positionAbs[this.containers[innermostIndex].floating ? 'left' : 'top'];
741
+ for (var j = this.items.length - 1; j >= 0; j--) {
742
+ if(!$.ui.contains(this.containers[innermostIndex].element[0], this.items[j].item[0])) continue;
743
+ var cur = this.containers[innermostIndex].floating ? this.items[j].item.offset().left : this.items[j].item.offset().top;
744
+ if(Math.abs(cur - base) < dist) {
745
+ dist = Math.abs(cur - base); itemWithLeastDistance = this.items[j];
746
+ this.direction = (cur - base > 0) ? 'down' : 'up';
747
+ }
748
+ }
749
+
750
+ if(!itemWithLeastDistance && !this.options.dropOnEmpty) //Check if dropOnEmpty is enabled
751
+ return;
752
+
753
+ this.currentContainer = this.containers[innermostIndex];
754
+ itemWithLeastDistance ? this._rearrange(event, itemWithLeastDistance, null, true) : this._rearrange(event, null, this.containers[innermostIndex].element, true);
755
+ this._trigger("change", event, this._uiHash());
756
+ this.containers[innermostIndex]._trigger("change", event, this._uiHash(this));
757
+
758
+ //Update the placeholder
759
+ this.options.placeholder.update(this.currentContainer, this.placeholder);
760
+
761
+ this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
761
762
  this.containers[innermostIndex].containerCache.over = 1;
762
763
  }
763
764
 
@@ -1079,7 +1080,7 @@ $.widget("ui.sortable", $.ui.mouse, {
1079
1080
  });
1080
1081
 
1081
1082
  $.extend($.ui.sortable, {
1082
- version: "1.8.20"
1083
+ version: "1.8.21"
1083
1084
  });
1084
1085
 
1085
1086
  })(jQuery);
@@ -2,7 +2,7 @@
2
2
  //= require jquery.ui.widget
3
3
 
4
4
  /*!
5
- * jQuery UI Tabs 1.8.20
5
+ * jQuery UI Tabs 1.8.21
6
6
  *
7
7
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
8
8
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -701,7 +701,7 @@ $.widget( "ui.tabs", {
701
701
  });
702
702
 
703
703
  $.extend( $.ui.tabs, {
704
- version: "1.8.20"
704
+ version: "1.8.21"
705
705
  });
706
706
 
707
707
  /*
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Widget 1.8.20
2
+ * jQuery UI Widget 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Accordion 1.8.20
2
+ * jQuery UI Accordion 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI CSS Framework 1.8.20
2
+ * jQuery UI CSS Framework 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Autocomplete 1.8.20
2
+ * jQuery UI Autocomplete 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -17,7 +17,7 @@
17
17
  * html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
18
18
 
19
19
  /*
20
- * jQuery UI Menu 1.8.20
20
+ * jQuery UI Menu 1.8.21
21
21
  *
22
22
  * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
23
23
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI CSS Framework 1.8.20
2
+ * jQuery UI CSS Framework 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Button 1.8.20
2
+ * jQuery UI Button 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI CSS Framework 1.8.20
2
+ * jQuery UI CSS Framework 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Datepicker 1.8.20
2
+ * jQuery UI Datepicker 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Dialog 1.8.20
2
+ * jQuery UI Dialog 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Progressbar 1.8.20
2
+ * jQuery UI Progressbar 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Resizable 1.8.20
2
+ * jQuery UI Resizable 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Selectable 1.8.20
2
+ * jQuery UI Selectable 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Slider 1.8.20
2
+ * jQuery UI Slider 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI Tabs 1.8.20
2
+ * jQuery UI Tabs 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jQuery UI CSS Framework 1.8.20
2
+ * jQuery UI CSS Framework 1.8.21
3
3
  *
4
4
  * Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
5
5
  * Dual licensed under the MIT or GPL Version 2 licenses.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-ui-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-30 00:00:00.000000000 Z
12
+ date: 2012-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -137,7 +137,6 @@ files:
137
137
  - vendor/assets/javascripts/jquery.ui.datepicker-fo.js
138
138
  - vendor/assets/javascripts/jquery.ui.datepicker-fr-CH.js
139
139
  - vendor/assets/javascripts/jquery.ui.datepicker-fr.js
140
- - vendor/assets/javascripts/jquery.ui.datepicker-ge.js
141
140
  - vendor/assets/javascripts/jquery.ui.datepicker-gl.js
142
141
  - vendor/assets/javascripts/jquery.ui.datepicker-he.js
143
142
  - vendor/assets/javascripts/jquery.ui.datepicker-hi.js
@@ -148,6 +147,7 @@ files:
148
147
  - vendor/assets/javascripts/jquery.ui.datepicker-is.js
149
148
  - vendor/assets/javascripts/jquery.ui.datepicker-it.js
150
149
  - vendor/assets/javascripts/jquery.ui.datepicker-ja.js
150
+ - vendor/assets/javascripts/jquery.ui.datepicker-ka.js
151
151
  - vendor/assets/javascripts/jquery.ui.datepicker-kk.js
152
152
  - vendor/assets/javascripts/jquery.ui.datepicker-km.js
153
153
  - vendor/assets/javascripts/jquery.ui.datepicker-ko.js
@@ -222,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
222
222
  version: '0'
223
223
  segments:
224
224
  - 0
225
- hash: -295476858137287624
225
+ hash: 4308201058939949109
226
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  none: false
228
228
  requirements: