jquery-ui-rails 0.1.0 → 0.2.0
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.
- data/.gitignore +3 -0
- data/History.md +7 -0
- data/README.md +32 -3
- data/jquery-ui/version.txt +1 -1
- data/lib/jquery/ui/rails/version.rb +1 -1
- data/vendor/assets/javascripts/jquery.effects.blind.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.bounce.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.clip.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.core.js +2 -2
- data/vendor/assets/javascripts/jquery.effects.drop.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.explode.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.fade.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.fold.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.highlight.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.pulsate.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.scale.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.shake.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.slide.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.transfer.js +1 -1
- data/vendor/assets/javascripts/jquery.ui.accordion.js +7 -7
- data/vendor/assets/javascripts/jquery.ui.autocomplete.js +12 -2
- data/vendor/assets/javascripts/jquery.ui.button.js +5 -5
- data/vendor/assets/javascripts/jquery.ui.core.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.datepicker-hu.js +6 -6
- data/vendor/assets/javascripts/jquery.ui.datepicker-uk.js +2 -1
- data/vendor/assets/javascripts/jquery.ui.datepicker.js +19 -19
- data/vendor/assets/javascripts/jquery.ui.dialog.js +5 -5
- data/vendor/assets/javascripts/jquery.ui.draggable.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.droppable.js +3 -3
- data/vendor/assets/javascripts/jquery.ui.mouse.js +1 -1
- data/vendor/assets/javascripts/jquery.ui.position.js +50 -4
- data/vendor/assets/javascripts/jquery.ui.progressbar.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.resizable.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.selectable.js +7 -6
- data/vendor/assets/javascripts/jquery.ui.slider.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.sortable.js +11 -12
- data/vendor/assets/javascripts/jquery.ui.tabs.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.widget.js +13 -9
- data/vendor/assets/stylesheets/jquery.ui.accordion.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.all.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.autocomplete.css.erb +2 -2
- data/vendor/assets/stylesheets/jquery.ui.base.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.button.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.core.css.erb +4 -7
- data/vendor/assets/stylesheets/jquery.ui.datepicker.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.dialog.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +2 -2
- data/vendor/assets/stylesheets/jquery.ui.resizable.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.selectable.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.slider.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.tabs.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.theme.css.erb +1 -1
- metadata +15 -9
- data/vendor/assets/javascripts/jquery.ui.datepicker-kz.js +0 -25
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery.ui.position
|
4
4
|
|
5
5
|
/*
|
6
|
-
* jQuery UI Dialog 1.8.
|
6
|
+
* jQuery UI Dialog 1.8.17
|
7
7
|
*
|
8
8
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -333,9 +333,9 @@ $.widget("ui.dialog", {
|
|
333
333
|
self.moveToTop(true);
|
334
334
|
|
335
335
|
// prevent tabbing out of modal dialogs
|
336
|
-
if (options.modal) {
|
337
|
-
uiDialog.bind(
|
338
|
-
if (event.keyCode !== $.ui.keyCode.TAB) {
|
336
|
+
if ( options.modal ) {
|
337
|
+
uiDialog.bind( "keydown.ui-dialog", function( event ) {
|
338
|
+
if ( event.keyCode !== $.ui.keyCode.TAB ) {
|
339
339
|
return;
|
340
340
|
}
|
341
341
|
|
@@ -706,7 +706,7 @@ $.widget("ui.dialog", {
|
|
706
706
|
});
|
707
707
|
|
708
708
|
$.extend($.ui.dialog, {
|
709
|
-
version: "1.8.
|
709
|
+
version: "1.8.17",
|
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.
|
6
|
+
* jQuery UI Draggable 1.8.17
|
7
7
|
*
|
8
8
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -509,7 +509,7 @@ $.widget("ui.draggable", $.ui.mouse, {
|
|
509
509
|
});
|
510
510
|
|
511
511
|
$.extend($.ui.draggable, {
|
512
|
-
version: "1.8.
|
512
|
+
version: "1.8.17"
|
513
513
|
});
|
514
514
|
|
515
515
|
$.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.
|
7
|
+
* jQuery UI Droppable 1.8.17
|
8
8
|
*
|
9
9
|
* Copyright 2011, 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.
|
155
|
+
version: "1.8.17"
|
156
156
|
});
|
157
157
|
|
158
158
|
$.ui.intersect = function(draggable, droppable, toleranceMode) {
|
@@ -232,7 +232,7 @@ $.ui.ddmanager = {
|
|
232
232
|
|
233
233
|
if(!this.options) return;
|
234
234
|
if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))
|
235
|
-
dropped =
|
235
|
+
dropped = this._drop.call(this, event) || dropped;
|
236
236
|
|
237
237
|
if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
|
238
238
|
this.isout = 1; this.isover = 0;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* jQuery UI Position 1.8.
|
2
|
+
* jQuery UI Position 1.8.17
|
3
3
|
*
|
4
4
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5
5
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -14,6 +14,7 @@ $.ui = $.ui || {};
|
|
14
14
|
var horizontalPositions = /left|center|right/,
|
15
15
|
verticalPositions = /top|center|bottom/,
|
16
16
|
center = "center",
|
17
|
+
support = {},
|
17
18
|
_position = $.fn.position,
|
18
19
|
_offset = $.fn.offset;
|
19
20
|
|
@@ -121,9 +122,11 @@ $.fn.position = function( options ) {
|
|
121
122
|
position.top -= elemHeight / 2;
|
122
123
|
}
|
123
124
|
|
124
|
-
// prevent fractions (see #5280)
|
125
|
-
|
126
|
-
|
125
|
+
// prevent fractions if jQuery version doesn't support them (see #5280)
|
126
|
+
if ( !support.fractions ) {
|
127
|
+
position.left = Math.round( position.left );
|
128
|
+
position.top = Math.round( position.top );
|
129
|
+
}
|
127
130
|
|
128
131
|
collisionPosition = {
|
129
132
|
left: position.left - marginLeft,
|
@@ -249,4 +252,47 @@ if ( !$.offset.setOffset ) {
|
|
249
252
|
};
|
250
253
|
}
|
251
254
|
|
255
|
+
// fraction support test (older versions of jQuery don't support fractions)
|
256
|
+
(function () {
|
257
|
+
var body = document.getElementsByTagName( "body" )[ 0 ],
|
258
|
+
div = document.createElement( "div" ),
|
259
|
+
testElement, testElementParent, testElementStyle, offset, offsetTotal;
|
260
|
+
|
261
|
+
//Create a "fake body" for testing based on method used in jQuery.support
|
262
|
+
testElement = document.createElement( body ? "div" : "body" );
|
263
|
+
testElementStyle = {
|
264
|
+
visibility: "hidden",
|
265
|
+
width: 0,
|
266
|
+
height: 0,
|
267
|
+
border: 0,
|
268
|
+
margin: 0,
|
269
|
+
background: "none"
|
270
|
+
};
|
271
|
+
if ( body ) {
|
272
|
+
jQuery.extend( testElementStyle, {
|
273
|
+
position: "absolute",
|
274
|
+
left: "-1000px",
|
275
|
+
top: "-1000px"
|
276
|
+
});
|
277
|
+
}
|
278
|
+
for ( var i in testElementStyle ) {
|
279
|
+
testElement.style[ i ] = testElementStyle[ i ];
|
280
|
+
}
|
281
|
+
testElement.appendChild( div );
|
282
|
+
testElementParent = body || document.documentElement;
|
283
|
+
testElementParent.insertBefore( testElement, testElementParent.firstChild );
|
284
|
+
|
285
|
+
div.style.cssText = "position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";
|
286
|
+
|
287
|
+
offset = $( div ).offset( function( _, offset ) {
|
288
|
+
return offset;
|
289
|
+
}).offset();
|
290
|
+
|
291
|
+
testElement.innerHTML = "";
|
292
|
+
testElementParent.removeChild( testElement );
|
293
|
+
|
294
|
+
offsetTotal = offset.top + offset.left + ( body ? 2000 : 0 );
|
295
|
+
support.fractions = offsetTotal > 21 && offsetTotal < 22;
|
296
|
+
})();
|
297
|
+
|
252
298
|
}( jQuery ));
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery.ui.widget
|
3
3
|
|
4
4
|
/*
|
5
|
-
* jQuery UI Progressbar 1.8.
|
5
|
+
* jQuery UI Progressbar 1.8.17
|
6
6
|
*
|
7
7
|
* Copyright 2011, 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.
|
109
|
+
version: "1.8.17"
|
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.
|
6
|
+
* jQuery UI Resizable 1.8.17
|
7
7
|
*
|
8
8
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -553,7 +553,7 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|
553
553
|
});
|
554
554
|
|
555
555
|
$.extend($.ui.resizable, {
|
556
|
-
version: "1.8.
|
556
|
+
version: "1.8.17"
|
557
557
|
});
|
558
558
|
|
559
559
|
/*
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery.ui.mouse
|
4
4
|
|
5
5
|
/*
|
6
|
-
* jQuery UI Selectable 1.8.
|
6
|
+
* jQuery UI Selectable 1.8.17
|
7
7
|
*
|
8
8
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -37,6 +37,7 @@ $.widget("ui.selectable", $.ui.mouse, {
|
|
37
37
|
var selectees;
|
38
38
|
this.refresh = function() {
|
39
39
|
selectees = $(self.options.filter, self.element[0]);
|
40
|
+
selectees.addClass("ui-selectee");
|
40
41
|
selectees.each(function() {
|
41
42
|
var $this = $(this);
|
42
43
|
var pos = $this.offset();
|
@@ -106,7 +107,7 @@ $.widget("ui.selectable", $.ui.mouse, {
|
|
106
107
|
this.selectees.filter('.ui-selected').each(function() {
|
107
108
|
var selectee = $.data(this, "selectable-item");
|
108
109
|
selectee.startselected = true;
|
109
|
-
if (!event.metaKey) {
|
110
|
+
if (!event.metaKey && !event.ctrlKey) {
|
110
111
|
selectee.$element.removeClass('ui-selected');
|
111
112
|
selectee.selected = false;
|
112
113
|
selectee.$element.addClass('ui-unselecting');
|
@@ -121,7 +122,7 @@ $.widget("ui.selectable", $.ui.mouse, {
|
|
121
122
|
$(event.target).parents().andSelf().each(function() {
|
122
123
|
var selectee = $.data(this, "selectable-item");
|
123
124
|
if (selectee) {
|
124
|
-
var doSelect = !event.metaKey || !selectee.$element.hasClass('ui-selected');
|
125
|
+
var doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass('ui-selected');
|
125
126
|
selectee.$element
|
126
127
|
.removeClass(doSelect ? "ui-unselecting" : "ui-selected")
|
127
128
|
.addClass(doSelect ? "ui-selecting" : "ui-unselecting");
|
@@ -191,7 +192,7 @@ $.widget("ui.selectable", $.ui.mouse, {
|
|
191
192
|
} else {
|
192
193
|
// UNSELECT
|
193
194
|
if (selectee.selecting) {
|
194
|
-
if (event.metaKey && selectee.startselected) {
|
195
|
+
if ((event.metaKey || event.ctrlKey) && selectee.startselected) {
|
195
196
|
selectee.$element.removeClass('ui-selecting');
|
196
197
|
selectee.selecting = false;
|
197
198
|
selectee.$element.addClass('ui-selected');
|
@@ -210,7 +211,7 @@ $.widget("ui.selectable", $.ui.mouse, {
|
|
210
211
|
}
|
211
212
|
}
|
212
213
|
if (selectee.selected) {
|
213
|
-
if (!event.metaKey && !selectee.startselected) {
|
214
|
+
if (!event.metaKey && !event.ctrlKey && !selectee.startselected) {
|
214
215
|
selectee.$element.removeClass('ui-selected');
|
215
216
|
selectee.selected = false;
|
216
217
|
|
@@ -264,7 +265,7 @@ $.widget("ui.selectable", $.ui.mouse, {
|
|
264
265
|
});
|
265
266
|
|
266
267
|
$.extend($.ui.selectable, {
|
267
|
-
version: "1.8.
|
268
|
+
version: "1.8.17"
|
268
269
|
});
|
269
270
|
|
270
271
|
})(jQuery);
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery.ui.mouse
|
4
4
|
|
5
5
|
/*
|
6
|
-
* jQuery UI Slider 1.8.
|
6
|
+
* jQuery UI Slider 1.8.17
|
7
7
|
*
|
8
8
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -664,7 +664,7 @@ $.widget( "ui.slider", $.ui.mouse, {
|
|
664
664
|
});
|
665
665
|
|
666
666
|
$.extend( $.ui.slider, {
|
667
|
-
version: "1.8.
|
667
|
+
version: "1.8.17"
|
668
668
|
});
|
669
669
|
|
670
670
|
}(jQuery));
|
@@ -3,7 +3,7 @@
|
|
3
3
|
//= require jquery.ui.mouse
|
4
4
|
|
5
5
|
/*
|
6
|
-
* jQuery UI Sortable 1.8.
|
6
|
+
* jQuery UI Sortable 1.8.17
|
7
7
|
*
|
8
8
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -66,13 +66,11 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
66
66
|
|
67
67
|
destroy: function() {
|
68
68
|
this.element
|
69
|
-
.removeClass("ui-sortable ui-sortable-disabled")
|
70
|
-
.removeData("sortable")
|
71
|
-
.unbind(".sortable");
|
69
|
+
.removeClass("ui-sortable ui-sortable-disabled");
|
72
70
|
this._mouseDestroy();
|
73
71
|
|
74
72
|
for ( var i = this.items.length - 1; i >= 0; i-- )
|
75
|
-
this.items[i].item.removeData("
|
73
|
+
this.items[i].item.removeData(this.widgetName + "-item");
|
76
74
|
|
77
75
|
return this;
|
78
76
|
},
|
@@ -90,6 +88,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
90
88
|
},
|
91
89
|
|
92
90
|
_mouseCapture: function(event, overrideHandle) {
|
91
|
+
var that = this;
|
93
92
|
|
94
93
|
if (this.reverting) {
|
95
94
|
return false;
|
@@ -102,12 +101,12 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
102
101
|
|
103
102
|
//Find out if the clicked node (or one of its parents) is a actual item in this.items
|
104
103
|
var currentItem = null, self = this, nodes = $(event.target).parents().each(function() {
|
105
|
-
if($.data(this, '
|
104
|
+
if($.data(this, that.widgetName + '-item') == self) {
|
106
105
|
currentItem = $(this);
|
107
106
|
return false;
|
108
107
|
}
|
109
108
|
});
|
110
|
-
if($.data(event.target, '
|
109
|
+
if($.data(event.target, that.widgetName + '-item') == self) currentItem = $(event.target);
|
111
110
|
|
112
111
|
if(!currentItem) return false;
|
113
112
|
if(this.options.handle && !overrideHandle) {
|
@@ -532,7 +531,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
532
531
|
for (var i = connectWith.length - 1; i >= 0; i--){
|
533
532
|
var cur = $(connectWith[i]);
|
534
533
|
for (var j = cur.length - 1; j >= 0; j--){
|
535
|
-
var inst = $.data(cur[j],
|
534
|
+
var inst = $.data(cur[j], this.widgetName);
|
536
535
|
if(inst && inst != this && !inst.options.disabled) {
|
537
536
|
queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element) : $(inst.options.items, inst.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'), inst]);
|
538
537
|
}
|
@@ -554,7 +553,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
554
553
|
|
555
554
|
_removeCurrentsFromItems: function() {
|
556
555
|
|
557
|
-
var list = this.currentItem.find(":data(
|
556
|
+
var list = this.currentItem.find(":data(" + this.widgetName + "-item)");
|
558
557
|
|
559
558
|
for (var i=0; i < this.items.length; i++) {
|
560
559
|
|
@@ -580,7 +579,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
580
579
|
for (var i = connectWith.length - 1; i >= 0; i--){
|
581
580
|
var cur = $(connectWith[i]);
|
582
581
|
for (var j = cur.length - 1; j >= 0; j--){
|
583
|
-
var inst = $.data(cur[j],
|
582
|
+
var inst = $.data(cur[j], this.widgetName);
|
584
583
|
if(inst && inst != this && !inst.options.disabled) {
|
585
584
|
queries.push([$.isFunction(inst.options.items) ? inst.options.items.call(inst.element[0], event, { item: this.currentItem }) : $(inst.options.items, inst.element), inst]);
|
586
585
|
this.containers.push(inst);
|
@@ -596,7 +595,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
596
595
|
for (var j=0, queriesLength = _queries.length; j < queriesLength; j++) {
|
597
596
|
var item = $(_queries[j]);
|
598
597
|
|
599
|
-
item.data('
|
598
|
+
item.data(this.widgetName + '-item', targetData); // Data for target checking (mouse manager)
|
600
599
|
|
601
600
|
items.push({
|
602
601
|
item: item,
|
@@ -1075,7 +1074,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
1075
1074
|
});
|
1076
1075
|
|
1077
1076
|
$.extend($.ui.sortable, {
|
1078
|
-
version: "1.8.
|
1077
|
+
version: "1.8.17"
|
1079
1078
|
});
|
1080
1079
|
|
1081
1080
|
})(jQuery);
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery.ui.widget
|
3
3
|
|
4
4
|
/*
|
5
|
-
* jQuery UI Tabs 1.8.
|
5
|
+
* jQuery UI Tabs 1.8.17
|
6
6
|
*
|
7
7
|
* Copyright 2011, 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.
|
704
|
+
version: "1.8.17"
|
705
705
|
});
|
706
706
|
|
707
707
|
/*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Widget 1.8.
|
2
|
+
* jQuery UI Widget 1.8.17
|
3
3
|
*
|
4
4
|
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5
5
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -239,21 +239,25 @@ $.Widget.prototype = {
|
|
239
239
|
},
|
240
240
|
|
241
241
|
_trigger: function( type, event, data ) {
|
242
|
-
var
|
242
|
+
var prop, orig,
|
243
|
+
callback = this.options[ type ];
|
243
244
|
|
245
|
+
data = data || {};
|
244
246
|
event = $.Event( event );
|
245
247
|
event.type = ( type === this.widgetEventPrefix ?
|
246
248
|
type :
|
247
249
|
this.widgetEventPrefix + type ).toLowerCase();
|
248
|
-
|
250
|
+
// the original event may come from any element
|
251
|
+
// so we need to reset the target on the new event
|
252
|
+
event.target = this.element[ 0 ];
|
249
253
|
|
250
254
|
// copy original event properties over to the new event
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
255
|
+
orig = event.originalEvent;
|
256
|
+
if ( orig ) {
|
257
|
+
for ( prop in orig ) {
|
258
|
+
if ( !( prop in event ) ) {
|
259
|
+
event[ prop ] = orig[ prop ];
|
260
|
+
}
|
257
261
|
}
|
258
262
|
}
|
259
263
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* jQuery UI Autocomplete 1.8.
|
2
|
+
* jQuery UI Autocomplete 1.8.17
|
3
3
|
*
|
4
4
|
* Copyright 2011, 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
|
+
* jQuery UI Menu 1.8.17
|
21
21
|
*
|
22
22
|
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
23
23
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|