jquery-ui-rails 5.0.4 → 5.0.5
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.
- data/VERSIONS.md +1 -0
- data/app/assets/javascripts/jquery-ui/accordion.js +6 -3
- data/app/assets/javascripts/jquery-ui/autocomplete.js +2 -2
- data/app/assets/javascripts/jquery-ui/button.js +3 -3
- data/app/assets/javascripts/jquery-ui/core.js +2 -2
- data/app/assets/javascripts/jquery-ui/datepicker.js +3 -3
- data/app/assets/javascripts/jquery-ui/dialog.js +5 -4
- data/app/assets/javascripts/jquery-ui/draggable.js +8 -4
- data/app/assets/javascripts/jquery-ui/droppable.js +2 -2
- data/app/assets/javascripts/jquery-ui/effect-blind.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-bounce.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-clip.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-drop.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-explode.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-fade.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-fold.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-highlight.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-puff.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-pulsate.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-scale.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-shake.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-size.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-slide.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect-transfer.js +1 -1
- data/app/assets/javascripts/jquery-ui/effect.js +2 -2
- data/app/assets/javascripts/jquery-ui/menu.js +2 -2
- data/app/assets/javascripts/jquery-ui/mouse.js +2 -2
- data/app/assets/javascripts/jquery-ui/position.js +1 -1
- data/app/assets/javascripts/jquery-ui/progressbar.js +2 -2
- data/app/assets/javascripts/jquery-ui/resizable.js +31 -58
- data/app/assets/javascripts/jquery-ui/selectable.js +2 -2
- data/app/assets/javascripts/jquery-ui/selectmenu.js +2 -2
- data/app/assets/javascripts/jquery-ui/slider.js +3 -3
- data/app/assets/javascripts/jquery-ui/sortable.js +24 -13
- data/app/assets/javascripts/jquery-ui/spinner.js +2 -2
- data/app/assets/javascripts/jquery-ui/tabs.js +19 -14
- data/app/assets/javascripts/jquery-ui/tooltip.js +21 -9
- data/app/assets/javascripts/jquery-ui/widget.js +1 -1
- data/app/assets/stylesheets/jquery-ui/accordion.css +1 -1
- data/app/assets/stylesheets/jquery-ui/all.css +1 -1
- data/app/assets/stylesheets/jquery-ui/autocomplete.css +1 -1
- data/app/assets/stylesheets/jquery-ui/base.css +1 -1
- data/app/assets/stylesheets/jquery-ui/button.css +1 -1
- data/app/assets/stylesheets/jquery-ui/core.css +1 -1
- data/app/assets/stylesheets/jquery-ui/datepicker.css +1 -1
- data/app/assets/stylesheets/jquery-ui/dialog.css +1 -1
- data/app/assets/stylesheets/jquery-ui/draggable.css +1 -1
- data/app/assets/stylesheets/jquery-ui/menu.css +1 -1
- data/app/assets/stylesheets/jquery-ui/progressbar.css +1 -1
- data/app/assets/stylesheets/jquery-ui/resizable.css +1 -1
- data/app/assets/stylesheets/jquery-ui/selectable.css +1 -1
- data/app/assets/stylesheets/jquery-ui/selectmenu.css +1 -1
- data/app/assets/stylesheets/jquery-ui/slider.css +1 -1
- data/app/assets/stylesheets/jquery-ui/sortable.css +1 -1
- data/app/assets/stylesheets/jquery-ui/spinner.css +1 -1
- data/app/assets/stylesheets/jquery-ui/tabs.css +1 -1
- data/app/assets/stylesheets/jquery-ui/theme.css.erb +1 -1
- data/app/assets/stylesheets/jquery-ui/tooltip.css +1 -1
- data/lib/jquery/ui/rails/version.rb +2 -2
- metadata +2 -2
data/VERSIONS.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Accordion 1.11.
|
5
|
+
* jQuery UI Accordion 1.11.4
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
8
|
* Copyright jQuery Foundation and other contributors
|
@@ -28,7 +28,7 @@
|
|
28
28
|
}(function( $ ) {
|
29
29
|
|
30
30
|
return $.widget( "ui.accordion", {
|
31
|
-
version: "1.11.
|
31
|
+
version: "1.11.4",
|
32
32
|
options: {
|
33
33
|
active: 0,
|
34
34
|
animate: {},
|
@@ -519,6 +519,7 @@ return $.widget( "ui.accordion", {
|
|
519
519
|
var total, easing, duration,
|
520
520
|
that = this,
|
521
521
|
adjust = 0,
|
522
|
+
boxSizing = toShow.css( "box-sizing" ),
|
522
523
|
down = toShow.length &&
|
523
524
|
( !toHide.length || ( toShow.index() < toHide.index() ) ),
|
524
525
|
animate = this.options.animate || {},
|
@@ -561,7 +562,9 @@ return $.widget( "ui.accordion", {
|
|
561
562
|
step: function( now, fx ) {
|
562
563
|
fx.now = Math.round( now );
|
563
564
|
if ( fx.prop !== "height" ) {
|
564
|
-
|
565
|
+
if ( boxSizing === "content-box" ) {
|
566
|
+
adjust += fx.now;
|
567
|
+
}
|
565
568
|
} else if ( that.options.heightStyle !== "content" ) {
|
566
569
|
fx.now = Math.round( total - toHide.outerHeight() - adjust );
|
567
570
|
adjust = 0;
|
@@ -4,7 +4,7 @@
|
|
4
4
|
//= require jquery-ui/position
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Autocomplete 1.11.
|
7
|
+
* jQuery UI Autocomplete 1.11.4
|
8
8
|
* http://jqueryui.com
|
9
9
|
*
|
10
10
|
* Copyright jQuery Foundation and other contributors
|
@@ -32,7 +32,7 @@
|
|
32
32
|
}(function( $ ) {
|
33
33
|
|
34
34
|
$.widget( "ui.autocomplete", {
|
35
|
-
version: "1.11.
|
35
|
+
version: "1.11.4",
|
36
36
|
defaultElement: "<input>",
|
37
37
|
options: {
|
38
38
|
appendTo: null,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Button 1.11.
|
5
|
+
* jQuery UI Button 1.11.4
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
8
|
* Copyright jQuery Foundation and other contributors
|
@@ -55,7 +55,7 @@ var lastActive,
|
|
55
55
|
};
|
56
56
|
|
57
57
|
$.widget( "ui.button", {
|
58
|
-
version: "1.11.
|
58
|
+
version: "1.11.4",
|
59
59
|
defaultElement: "<button>",
|
60
60
|
options: {
|
61
61
|
disabled: null,
|
@@ -351,7 +351,7 @@ $.widget( "ui.button", {
|
|
351
351
|
});
|
352
352
|
|
353
353
|
$.widget( "ui.buttonset", {
|
354
|
-
version: "1.11.
|
354
|
+
version: "1.11.4",
|
355
355
|
options: {
|
356
356
|
items: "button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"
|
357
357
|
},
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Core 1.11.
|
2
|
+
* jQuery UI Core 1.11.4
|
3
3
|
* http://jqueryui.com
|
4
4
|
*
|
5
5
|
* Copyright jQuery Foundation and other contributors
|
@@ -24,7 +24,7 @@
|
|
24
24
|
$.ui = $.ui || {};
|
25
25
|
|
26
26
|
$.extend( $.ui, {
|
27
|
-
version: "1.11.
|
27
|
+
version: "1.11.4",
|
28
28
|
|
29
29
|
keyCode: {
|
30
30
|
BACKSPACE: 8,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
//= require jquery-ui/core
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Datepicker 1.11.
|
4
|
+
* jQuery UI Datepicker 1.11.4
|
5
5
|
* http://jqueryui.com
|
6
6
|
*
|
7
7
|
* Copyright jQuery Foundation and other contributors
|
@@ -25,7 +25,7 @@
|
|
25
25
|
}
|
26
26
|
}(function( $ ) {
|
27
27
|
|
28
|
-
$.extend($.ui, { datepicker: { version: "1.11.
|
28
|
+
$.extend($.ui, { datepicker: { version: "1.11.4" } });
|
29
29
|
|
30
30
|
var datepicker_instActive;
|
31
31
|
|
@@ -2079,7 +2079,7 @@ $.fn.datepicker = function(options){
|
|
2079
2079
|
$.datepicker = new Datepicker(); // singleton instance
|
2080
2080
|
$.datepicker.initialized = false;
|
2081
2081
|
$.datepicker.uuid = new Date().getTime();
|
2082
|
-
$.datepicker.version = "1.11.
|
2082
|
+
$.datepicker.version = "1.11.4";
|
2083
2083
|
|
2084
2084
|
return $.datepicker;
|
2085
2085
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
//= require jquery-ui/resizable
|
7
7
|
|
8
8
|
/*!
|
9
|
-
* jQuery UI Dialog 1.11.
|
9
|
+
* jQuery UI Dialog 1.11.4
|
10
10
|
* http://jqueryui.com
|
11
11
|
*
|
12
12
|
* Copyright jQuery Foundation and other contributors
|
@@ -37,7 +37,7 @@
|
|
37
37
|
}(function( $ ) {
|
38
38
|
|
39
39
|
return $.widget( "ui.dialog", {
|
40
|
-
version: "1.11.
|
40
|
+
version: "1.11.4",
|
41
41
|
options: {
|
42
42
|
appendTo: "body",
|
43
43
|
autoOpen: true,
|
@@ -157,6 +157,7 @@ return $.widget( "ui.dialog", {
|
|
157
157
|
var next,
|
158
158
|
originalPosition = this.originalPosition;
|
159
159
|
|
160
|
+
this._untrackInstance();
|
160
161
|
this._destroyOverlay();
|
161
162
|
|
162
163
|
this.element
|
@@ -235,10 +236,10 @@ return $.widget( "ui.dialog", {
|
|
235
236
|
|
236
237
|
_moveToTop: function( event, silent ) {
|
237
238
|
var moved = false,
|
238
|
-
|
239
|
+
zIndices = this.uiDialog.siblings( ".ui-front:visible" ).map(function() {
|
239
240
|
return +$( this ).css( "z-index" );
|
240
241
|
}).get(),
|
241
|
-
zIndexMax = Math.max.apply( null,
|
242
|
+
zIndexMax = Math.max.apply( null, zIndices );
|
242
243
|
|
243
244
|
if ( zIndexMax >= +this.uiDialog.css( "z-index" ) ) {
|
244
245
|
this.uiDialog.css( "z-index", zIndexMax + 1 );
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery-ui/mouse
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Draggable 1.11.
|
6
|
+
* jQuery UI Draggable 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright jQuery Foundation and other contributors
|
@@ -30,7 +30,7 @@
|
|
30
30
|
}(function( $ ) {
|
31
31
|
|
32
32
|
$.widget("ui.draggable", $.ui.mouse, {
|
33
|
-
version: "1.11.
|
33
|
+
version: "1.11.4",
|
34
34
|
widgetEventPrefix: "drag",
|
35
35
|
options: {
|
36
36
|
addClasses: true,
|
@@ -804,6 +804,9 @@ $.ui.plugin.add( "draggable", "connectToSortable", {
|
|
804
804
|
if ( !sortable.isOver ) {
|
805
805
|
sortable.isOver = 1;
|
806
806
|
|
807
|
+
// Store draggable's parent in case we need to reappend to it later.
|
808
|
+
draggable._parent = ui.helper.parent();
|
809
|
+
|
807
810
|
sortable.currentItem = ui.helper
|
808
811
|
.appendTo( sortable.element )
|
809
812
|
.data( "ui-sortable-item", true );
|
@@ -880,8 +883,9 @@ $.ui.plugin.add( "draggable", "connectToSortable", {
|
|
880
883
|
sortable.placeholder.remove();
|
881
884
|
}
|
882
885
|
|
883
|
-
//
|
884
|
-
// may have modified them in unexpected ways (#8809)
|
886
|
+
// Restore and recalculate the draggable's offset considering the sortable
|
887
|
+
// may have modified them in unexpected ways. (#8809, #10669)
|
888
|
+
ui.helper.appendTo( draggable._parent );
|
885
889
|
draggable._refreshOffsets( event );
|
886
890
|
ui.position = draggable._generatePosition( event, true );
|
887
891
|
|
@@ -4,7 +4,7 @@
|
|
4
4
|
//= require jquery-ui/draggable
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Droppable 1.11.
|
7
|
+
* jQuery UI Droppable 1.11.4
|
8
8
|
* http://jqueryui.com
|
9
9
|
*
|
10
10
|
* Copyright jQuery Foundation and other contributors
|
@@ -32,7 +32,7 @@
|
|
32
32
|
}(function( $ ) {
|
33
33
|
|
34
34
|
$.widget( "ui.droppable", {
|
35
|
-
version: "1.11.
|
35
|
+
version: "1.11.4",
|
36
36
|
widgetEventPrefix: "drop",
|
37
37
|
options: {
|
38
38
|
accept: "*",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Effects 1.11.
|
2
|
+
* jQuery UI Effects 1.11.4
|
3
3
|
* http://jqueryui.com
|
4
4
|
*
|
5
5
|
* Copyright jQuery Foundation and other contributors
|
@@ -904,7 +904,7 @@ $.fn.extend({
|
|
904
904
|
(function() {
|
905
905
|
|
906
906
|
$.extend( $.effects, {
|
907
|
-
version: "1.11.
|
907
|
+
version: "1.11.4",
|
908
908
|
|
909
909
|
// Saves a set of properties in a data storage
|
910
910
|
save: function( element, set ) {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery-ui/position
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Menu 1.11.
|
6
|
+
* jQuery UI Menu 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright jQuery Foundation and other contributors
|
@@ -30,7 +30,7 @@
|
|
30
30
|
}(function( $ ) {
|
31
31
|
|
32
32
|
return $.widget( "ui.menu", {
|
33
|
-
version: "1.11.
|
33
|
+
version: "1.11.4",
|
34
34
|
defaultElement: "<ul>",
|
35
35
|
delay: 300,
|
36
36
|
options: {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Mouse 1.11.
|
5
|
+
* jQuery UI Mouse 1.11.4
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
8
|
* Copyright 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.
|
35
|
+
version: "1.11.4",
|
36
36
|
options: {
|
37
37
|
cancel: "input,textarea,button,select,option",
|
38
38
|
distance: 1,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Progressbar 1.11.
|
5
|
+
* jQuery UI Progressbar 1.11.4
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
8
|
* Copyright jQuery Foundation and other contributors
|
@@ -28,7 +28,7 @@
|
|
28
28
|
}(function( $ ) {
|
29
29
|
|
30
30
|
return $.widget( "ui.progressbar", {
|
31
|
-
version: "1.11.
|
31
|
+
version: "1.11.4",
|
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.
|
6
|
+
* jQuery UI Resizable 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright 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.
|
33
|
+
version: "1.11.4",
|
34
34
|
widgetEventPrefix: "resize",
|
35
35
|
options: {
|
36
36
|
alsoResize: false,
|
@@ -164,7 +164,8 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|
164
164
|
nw: ".ui-resizable-nw"
|
165
165
|
} );
|
166
166
|
|
167
|
-
|
167
|
+
this._handles = $();
|
168
|
+
if ( this.handles.constructor === String ) {
|
168
169
|
|
169
170
|
if ( this.handles === "all") {
|
170
171
|
this.handles = "n,e,s,w,se,sw,ne,nw";
|
@@ -202,6 +203,9 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|
202
203
|
|
203
204
|
if (this.handles[i].constructor === String) {
|
204
205
|
this.handles[i] = this.element.children( this.handles[ i ] ).first().show();
|
206
|
+
} else if ( this.handles[ i ].jquery || this.handles[ i ].nodeType ) {
|
207
|
+
this.handles[ i ] = $( this.handles[ i ] );
|
208
|
+
this._on( this.handles[ i ], { "mousedown": that._mouseDown });
|
205
209
|
}
|
206
210
|
|
207
211
|
if (this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)) {
|
@@ -218,21 +222,17 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|
218
222
|
target.css(padPos, padWrapper);
|
219
223
|
|
220
224
|
this._proportionallyResize();
|
221
|
-
|
222
225
|
}
|
223
226
|
|
224
|
-
|
225
|
-
if (!$(this.handles[i]).length) {
|
226
|
-
continue;
|
227
|
-
}
|
227
|
+
this._handles = this._handles.add( this.handles[ i ] );
|
228
228
|
}
|
229
229
|
};
|
230
230
|
|
231
231
|
// TODO: make renderAxis a prototype function
|
232
232
|
this._renderAxis(this.element);
|
233
233
|
|
234
|
-
this._handles =
|
235
|
-
|
234
|
+
this._handles = this._handles.add( this.element.find( ".ui-resizable-handle" ) );
|
235
|
+
this._handles.disableSelection();
|
236
236
|
|
237
237
|
this._handles.mouseover(function() {
|
238
238
|
if (!that.resizing) {
|
@@ -266,7 +266,6 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|
266
266
|
}
|
267
267
|
|
268
268
|
this._mouseInit();
|
269
|
-
|
270
269
|
},
|
271
270
|
|
272
271
|
_destroy: function() {
|
@@ -988,29 +987,15 @@ $.ui.plugin.add("resizable", "alsoResize", {
|
|
988
987
|
|
989
988
|
start: function() {
|
990
989
|
var that = $(this).resizable( "instance" ),
|
991
|
-
o = that.options
|
992
|
-
_store = function(exp) {
|
993
|
-
$(exp).each(function() {
|
994
|
-
var el = $(this);
|
995
|
-
el.data("ui-resizable-alsoresize", {
|
996
|
-
width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),
|
997
|
-
left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10)
|
998
|
-
});
|
999
|
-
});
|
1000
|
-
};
|
990
|
+
o = that.options;
|
1001
991
|
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
});
|
1010
|
-
}
|
1011
|
-
} else {
|
1012
|
-
_store(o.alsoResize);
|
1013
|
-
}
|
992
|
+
$(o.alsoResize).each(function() {
|
993
|
+
var el = $(this);
|
994
|
+
el.data("ui-resizable-alsoresize", {
|
995
|
+
width: parseInt(el.width(), 10), height: parseInt(el.height(), 10),
|
996
|
+
left: parseInt(el.css("left"), 10), top: parseInt(el.css("top"), 10)
|
997
|
+
});
|
998
|
+
});
|
1014
999
|
},
|
1015
1000
|
|
1016
1001
|
resize: function(event, ui) {
|
@@ -1023,35 +1008,23 @@ $.ui.plugin.add("resizable", "alsoResize", {
|
|
1023
1008
|
width: (that.size.width - os.width) || 0,
|
1024
1009
|
top: (that.position.top - op.top) || 0,
|
1025
1010
|
left: (that.position.left - op.left) || 0
|
1026
|
-
}
|
1011
|
+
};
|
1027
1012
|
|
1028
|
-
|
1029
|
-
$(
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
if (sum && sum >= 0) {
|
1040
|
-
style[prop] = sum || null;
|
1041
|
-
}
|
1042
|
-
});
|
1043
|
-
|
1044
|
-
el.css(style);
|
1013
|
+
$(o.alsoResize).each(function() {
|
1014
|
+
var el = $(this), start = $(this).data("ui-resizable-alsoresize"), style = {},
|
1015
|
+
css = el.parents(ui.originalElement[0]).length ?
|
1016
|
+
[ "width", "height" ] :
|
1017
|
+
[ "width", "height", "top", "left" ];
|
1018
|
+
|
1019
|
+
$.each(css, function(i, prop) {
|
1020
|
+
var sum = (start[prop] || 0) + (delta[prop] || 0);
|
1021
|
+
if (sum && sum >= 0) {
|
1022
|
+
style[prop] = sum || null;
|
1023
|
+
}
|
1045
1024
|
});
|
1046
|
-
};
|
1047
1025
|
|
1048
|
-
|
1049
|
-
$.each(o.alsoResize, function(exp, c) {
|
1050
|
-
_alsoResize(exp, c);
|
1026
|
+
el.css(style);
|
1051
1027
|
});
|
1052
|
-
} else {
|
1053
|
-
_alsoResize(o.alsoResize);
|
1054
|
-
}
|
1055
1028
|
},
|
1056
1029
|
|
1057
1030
|
stop: function() {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery-ui/mouse
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Selectable 1.11.
|
6
|
+
* jQuery UI Selectable 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright 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.
|
33
|
+
version: "1.11.4",
|
34
34
|
options: {
|
35
35
|
appendTo: "body",
|
36
36
|
autoRefresh: true,
|
@@ -4,7 +4,7 @@
|
|
4
4
|
//= require jquery-ui/menu
|
5
5
|
|
6
6
|
/*!
|
7
|
-
* jQuery UI Selectmenu 1.11.
|
7
|
+
* jQuery UI Selectmenu 1.11.4
|
8
8
|
* http://jqueryui.com
|
9
9
|
*
|
10
10
|
* Copyright jQuery Foundation and other contributors
|
@@ -32,7 +32,7 @@
|
|
32
32
|
}(function( $ ) {
|
33
33
|
|
34
34
|
return $.widget( "ui.selectmenu", {
|
35
|
-
version: "1.11.
|
35
|
+
version: "1.11.4",
|
36
36
|
defaultElement: "<select>",
|
37
37
|
options: {
|
38
38
|
appendTo: null,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery-ui/mouse
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Slider 1.11.
|
6
|
+
* jQuery UI Slider 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright jQuery Foundation and other contributors
|
@@ -30,7 +30,7 @@
|
|
30
30
|
}(function( $ ) {
|
31
31
|
|
32
32
|
return $.widget( "ui.slider", $.ui.mouse, {
|
33
|
-
version: "1.11.
|
33
|
+
version: "1.11.4",
|
34
34
|
widgetEventPrefix: "slide",
|
35
35
|
|
36
36
|
options: {
|
@@ -554,7 +554,7 @@ return $.widget( "ui.slider", $.ui.mouse, {
|
|
554
554
|
var max = this.options.max,
|
555
555
|
min = this._valueMin(),
|
556
556
|
step = this.options.step,
|
557
|
-
aboveMin = Math.floor( ( max - min ) / step ) * step;
|
557
|
+
aboveMin = Math.floor( ( +( max - min ).toFixed( this._precision() ) ) / step ) * step;
|
558
558
|
max = aboveMin + min;
|
559
559
|
this.max = parseFloat( max.toFixed( this._precision() ) );
|
560
560
|
},
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery-ui/mouse
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Sortable 1.11.
|
6
|
+
* jQuery UI Sortable 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright jQuery Foundation and other contributors
|
@@ -30,7 +30,7 @@
|
|
30
30
|
}(function( $ ) {
|
31
31
|
|
32
32
|
return $.widget("ui.sortable", $.ui.mouse, {
|
33
|
-
version: "1.11.
|
33
|
+
version: "1.11.4",
|
34
34
|
widgetEventPrefix: "sort",
|
35
35
|
ready: false,
|
36
36
|
options: {
|
@@ -81,17 +81,12 @@ return $.widget("ui.sortable", $.ui.mouse, {
|
|
81
81
|
},
|
82
82
|
|
83
83
|
_create: function() {
|
84
|
-
|
85
|
-
var o = this.options;
|
86
84
|
this.containerCache = {};
|
87
85
|
this.element.addClass("ui-sortable");
|
88
86
|
|
89
87
|
//Get the items
|
90
88
|
this.refresh();
|
91
89
|
|
92
|
-
//Let's determine if the items are being displayed horizontally
|
93
|
-
this.floating = this.items.length ? o.axis === "x" || this._isFloating(this.items[0].item) : false;
|
94
|
-
|
95
90
|
//Let's determine the parent's offset
|
96
91
|
this.offset = this.element.offset();
|
97
92
|
|
@@ -735,6 +730,11 @@ return $.widget("ui.sortable", $.ui.mouse, {
|
|
735
730
|
|
736
731
|
refreshPositions: function(fast) {
|
737
732
|
|
733
|
+
// Determine whether items are being displayed horizontally
|
734
|
+
this.floating = this.items.length ?
|
735
|
+
this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) :
|
736
|
+
false;
|
737
|
+
|
738
738
|
//This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change
|
739
739
|
if(this.offsetParent && this.helper) {
|
740
740
|
this.offset.parent = this._getParentOffset();
|
@@ -792,12 +792,13 @@ return $.widget("ui.sortable", $.ui.mouse, {
|
|
792
792
|
.addClass(className || that.currentItem[0].className+" ui-sortable-placeholder")
|
793
793
|
.removeClass("ui-sortable-helper");
|
794
794
|
|
795
|
-
if ( nodeName === "
|
796
|
-
that.
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
795
|
+
if ( nodeName === "tbody" ) {
|
796
|
+
that._createTrPlaceholder(
|
797
|
+
that.currentItem.find( "tr" ).eq( 0 ),
|
798
|
+
$( "<tr>", that.document[ 0 ] ).appendTo( element )
|
799
|
+
);
|
800
|
+
} else if ( nodeName === "tr" ) {
|
801
|
+
that._createTrPlaceholder( that.currentItem, element );
|
801
802
|
} else if ( nodeName === "img" ) {
|
802
803
|
element.attr( "src", that.currentItem.attr( "src" ) );
|
803
804
|
}
|
@@ -834,6 +835,16 @@ return $.widget("ui.sortable", $.ui.mouse, {
|
|
834
835
|
|
835
836
|
},
|
836
837
|
|
838
|
+
_createTrPlaceholder: function( sourceTr, targetTr ) {
|
839
|
+
var that = this;
|
840
|
+
|
841
|
+
sourceTr.children().each(function() {
|
842
|
+
$( "<td> </td>", that.document[ 0 ] )
|
843
|
+
.attr( "colspan", $( this ).attr( "colspan" ) || 1 )
|
844
|
+
.appendTo( targetTr );
|
845
|
+
});
|
846
|
+
},
|
847
|
+
|
837
848
|
_contactContainers: function(event) {
|
838
849
|
var i, j, dist, itemWithLeastDistance, posProperty, sizeProperty, cur, nearBottom, floating, axis,
|
839
850
|
innermostContainer = null,
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery-ui/button
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Spinner 1.11.
|
6
|
+
* jQuery UI Spinner 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright jQuery Foundation and other contributors
|
@@ -41,7 +41,7 @@ function spinner_modifier( fn ) {
|
|
41
41
|
}
|
42
42
|
|
43
43
|
return $.widget( "ui.spinner", {
|
44
|
-
version: "1.11.
|
44
|
+
version: "1.11.4",
|
45
45
|
defaultElement: "<input>",
|
46
46
|
widgetEventPrefix: "spin",
|
47
47
|
options: {
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery-ui/widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Tabs 1.11.
|
5
|
+
* jQuery UI Tabs 1.11.4
|
6
6
|
* http://jqueryui.com
|
7
7
|
*
|
8
8
|
* Copyright jQuery Foundation and other contributors
|
@@ -28,7 +28,7 @@
|
|
28
28
|
}(function( $ ) {
|
29
29
|
|
30
30
|
return $.widget( "ui.tabs", {
|
31
|
-
version: "1.11.
|
31
|
+
version: "1.11.4",
|
32
32
|
delay: 300,
|
33
33
|
options: {
|
34
34
|
active: null,
|
@@ -820,6 +820,18 @@ return $.widget( "ui.tabs", {
|
|
820
820
|
eventData = {
|
821
821
|
tab: tab,
|
822
822
|
panel: panel
|
823
|
+
},
|
824
|
+
complete = function( jqXHR, status ) {
|
825
|
+
if ( status === "abort" ) {
|
826
|
+
that.panels.stop( false, true );
|
827
|
+
}
|
828
|
+
|
829
|
+
tab.removeClass( "ui-tabs-loading" );
|
830
|
+
panel.removeAttr( "aria-busy" );
|
831
|
+
|
832
|
+
if ( jqXHR === that.xhr ) {
|
833
|
+
delete that.xhr;
|
834
|
+
}
|
823
835
|
};
|
824
836
|
|
825
837
|
// not remote
|
@@ -837,28 +849,21 @@ return $.widget( "ui.tabs", {
|
|
837
849
|
panel.attr( "aria-busy", "true" );
|
838
850
|
|
839
851
|
this.xhr
|
840
|
-
.
|
852
|
+
.done(function( response, status, jqXHR ) {
|
841
853
|
// support: jQuery <1.8
|
842
854
|
// http://bugs.jquery.com/ticket/11778
|
843
855
|
setTimeout(function() {
|
844
856
|
panel.html( response );
|
845
857
|
that._trigger( "load", event, eventData );
|
858
|
+
|
859
|
+
complete( jqXHR, status );
|
846
860
|
}, 1 );
|
847
861
|
})
|
848
|
-
.
|
862
|
+
.fail(function( jqXHR, status ) {
|
849
863
|
// support: jQuery <1.8
|
850
864
|
// http://bugs.jquery.com/ticket/11778
|
851
865
|
setTimeout(function() {
|
852
|
-
|
853
|
-
that.panels.stop( false, true );
|
854
|
-
}
|
855
|
-
|
856
|
-
tab.removeClass( "ui-tabs-loading" );
|
857
|
-
panel.removeAttr( "aria-busy" );
|
858
|
-
|
859
|
-
if ( jqXHR === that.xhr ) {
|
860
|
-
delete that.xhr;
|
861
|
-
}
|
866
|
+
complete( jqXHR, status );
|
862
867
|
}, 1 );
|
863
868
|
});
|
864
869
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery-ui/position
|
4
4
|
|
5
5
|
/*!
|
6
|
-
* jQuery UI Tooltip 1.11.
|
6
|
+
* jQuery UI Tooltip 1.11.4
|
7
7
|
* http://jqueryui.com
|
8
8
|
*
|
9
9
|
* Copyright jQuery Foundation and other contributors
|
@@ -30,7 +30,7 @@
|
|
30
30
|
}(function( $ ) {
|
31
31
|
|
32
32
|
return $.widget( "ui.tooltip", {
|
33
|
-
version: "1.11.
|
33
|
+
version: "1.11.4",
|
34
34
|
options: {
|
35
35
|
content: function() {
|
36
36
|
// support: IE<9, Opera in jQuery <1.7
|
@@ -198,6 +198,7 @@ return $.widget( "ui.tooltip", {
|
|
198
198
|
});
|
199
199
|
}
|
200
200
|
|
201
|
+
this._registerCloseHandlers( event, target );
|
201
202
|
this._updateContent( target, event );
|
202
203
|
},
|
203
204
|
|
@@ -212,13 +213,16 @@ return $.widget( "ui.tooltip", {
|
|
212
213
|
}
|
213
214
|
|
214
215
|
content = contentOption.call( target[0], function( response ) {
|
215
|
-
|
216
|
-
if ( !target.data( "ui-tooltip-open" ) ) {
|
217
|
-
return;
|
218
|
-
}
|
216
|
+
|
219
217
|
// IE may instantly serve a cached response for ajax requests
|
220
218
|
// delay this call to _open so the other call to _open runs first
|
221
219
|
that._delay(function() {
|
220
|
+
|
221
|
+
// Ignore async response if tooltip was closed already
|
222
|
+
if ( !target.data( "ui-tooltip-open" ) ) {
|
223
|
+
return;
|
224
|
+
}
|
225
|
+
|
222
226
|
// jQuery creates a special event for focusin when it doesn't
|
223
227
|
// exist natively. To improve performance, the native event
|
224
228
|
// object is reused and the type is changed. Therefore, we can't
|
@@ -236,7 +240,7 @@ return $.widget( "ui.tooltip", {
|
|
236
240
|
},
|
237
241
|
|
238
242
|
_open: function( event, target, content ) {
|
239
|
-
var tooltipData, tooltip,
|
243
|
+
var tooltipData, tooltip, delayedShow, a11yContent,
|
240
244
|
positionOption = $.extend( {}, this.options.position );
|
241
245
|
|
242
246
|
if ( !content ) {
|
@@ -318,8 +322,10 @@ return $.widget( "ui.tooltip", {
|
|
318
322
|
}
|
319
323
|
|
320
324
|
this._trigger( "open", event, { tooltip: tooltip } );
|
325
|
+
},
|
321
326
|
|
322
|
-
|
327
|
+
_registerCloseHandlers: function( event, target ) {
|
328
|
+
var events = {
|
323
329
|
keyup: function( event ) {
|
324
330
|
if ( event.keyCode === $.ui.keyCode.ESCAPE ) {
|
325
331
|
var fakeEvent = $.Event(event);
|
@@ -333,7 +339,7 @@ return $.widget( "ui.tooltip", {
|
|
333
339
|
// tooltips will handle this in destroy.
|
334
340
|
if ( target[ 0 ] !== this.element[ 0 ] ) {
|
335
341
|
events.remove = function() {
|
336
|
-
this._removeTooltip( tooltip );
|
342
|
+
this._removeTooltip( this._find( target ).tooltip );
|
337
343
|
};
|
338
344
|
}
|
339
345
|
|
@@ -354,6 +360,12 @@ return $.widget( "ui.tooltip", {
|
|
354
360
|
|
355
361
|
// The tooltip may already be closed
|
356
362
|
if ( !tooltipData ) {
|
363
|
+
|
364
|
+
// We set ui-tooltip-open immediately upon open (in open()), but only set the
|
365
|
+
// additional data once there's actually content to show (in _open()). So even if the
|
366
|
+
// tooltip doesn't have full data, we always remove ui-tooltip-open in case we're in
|
367
|
+
// the period between open() and _open().
|
368
|
+
target.removeData( "ui-tooltip-open" );
|
357
369
|
return;
|
358
370
|
}
|
359
371
|
|
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: 5.0.
|
4
|
+
version: 5.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
segments:
|
228
228
|
- 0
|
229
|
-
hash: -
|
229
|
+
hash: -1923232203443473518
|
230
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
231
|
none: false
|
232
232
|
requirements:
|