jquery-ui-rails 1.0.0 → 1.1.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/History.md +4 -0
- 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 +2 -2
- data/vendor/assets/javascripts/jquery.effects.clip.js +1 -1
- data/vendor/assets/javascripts/jquery.effects.core.js +4 -3
- data/vendor/assets/javascripts/jquery.effects.drop.js +2 -2
- 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 +2 -2
- data/vendor/assets/javascripts/jquery.effects.transfer.js +1 -1
- data/vendor/assets/javascripts/jquery.ui.accordion.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.autocomplete.js +1 -1
- data/vendor/assets/javascripts/jquery.ui.button.js +1 -1
- data/vendor/assets/javascripts/jquery.ui.core.js +58 -43
- data/vendor/assets/javascripts/jquery.ui.datepicker.js +52 -22
- data/vendor/assets/javascripts/jquery.ui.dialog.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.draggable.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.droppable.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.mouse.js +1 -1
- data/vendor/assets/javascripts/jquery.ui.position.js +1 -1
- 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 +2 -2
- data/vendor/assets/javascripts/jquery.ui.slider.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.sortable.js +4 -2
- data/vendor/assets/javascripts/jquery.ui.tabs.js +2 -2
- data/vendor/assets/javascripts/jquery.ui.widget.js +1 -1
- 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 +1 -1
- data/vendor/assets/stylesheets/jquery.ui.datepicker.css.erb +1 -3
- data/vendor/assets/stylesheets/jquery.ui.dialog.css.erb +1 -1
- data/vendor/assets/stylesheets/jquery.ui.progressbar.css.erb +1 -1
- 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 +4 -4
data/History.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
//= require jquery.effects.core
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Bounce 1.8.
|
4
|
+
* jQuery UI Effects Bounce 1.8.22
|
5
5
|
*
|
6
6
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
7
7
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -34,7 +34,7 @@ $.effects.bounce = function(o) {
|
|
34
34
|
$.effects.createWrapper(el); // Create Wrapper
|
35
35
|
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
|
36
36
|
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
|
37
|
-
var distance = o.options.distance || (ref == 'top' ? el.outerHeight(
|
37
|
+
var distance = o.options.distance || (ref == 'top' ? el.outerHeight(true) / 3 : el.outerWidth(true) / 3);
|
38
38
|
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
|
39
39
|
if (mode == 'hide') distance = distance / (times * 2);
|
40
40
|
if (mode != 'hide') times--;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Effects 1.8.
|
2
|
+
* jQuery UI Effects 1.8.22
|
3
3
|
*
|
4
4
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
5
5
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -75,7 +75,8 @@ function getColor(elem, attr) {
|
|
75
75
|
var color;
|
76
76
|
|
77
77
|
do {
|
78
|
-
|
78
|
+
// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css
|
79
|
+
color = ($.curCSS || $.css)(elem, attr);
|
79
80
|
|
80
81
|
// Keep going until we find an element that has color, or we hit the body
|
81
82
|
if ( color != '' && color != 'transparent' || $.nodeName(elem, "body") )
|
@@ -306,7 +307,7 @@ $.fn.extend({
|
|
306
307
|
/******************************************************************************/
|
307
308
|
|
308
309
|
$.extend($.effects, {
|
309
|
-
version: "1.8.
|
310
|
+
version: "1.8.22",
|
310
311
|
|
311
312
|
// Saves a set of properties in a data storage
|
312
313
|
save: function(element, set) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
//= require jquery.effects.core
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Drop 1.8.
|
4
|
+
* jQuery UI Effects Drop 1.8.22
|
5
5
|
*
|
6
6
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
7
7
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -30,7 +30,7 @@ $.effects.drop = function(o) {
|
|
30
30
|
$.effects.createWrapper(el); // Create Wrapper
|
31
31
|
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
|
32
32
|
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
|
33
|
-
var distance = o.options.distance || (ref == 'top' ? el.outerHeight(
|
33
|
+
var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) / 2 : el.outerWidth( true ) / 2);
|
34
34
|
if (mode == 'show') el.css('opacity', 0).css(ref, motion == 'pos' ? -distance : distance); // Shift
|
35
35
|
|
36
36
|
// Animation
|
@@ -1,7 +1,7 @@
|
|
1
1
|
//= require jquery.effects.core
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Effects Slide 1.8.
|
4
|
+
* jQuery UI Effects Slide 1.8.22
|
5
5
|
*
|
6
6
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
7
7
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -30,7 +30,7 @@ $.effects.slide = function(o) {
|
|
30
30
|
$.effects.createWrapper(el).css({overflow:'hidden'}); // Create Wrapper
|
31
31
|
var ref = (direction == 'up' || direction == 'down') ? 'top' : 'left';
|
32
32
|
var motion = (direction == 'up' || direction == 'left') ? 'pos' : 'neg';
|
33
|
-
var distance = o.options.distance || (ref == 'top' ? el.outerHeight(
|
33
|
+
var distance = o.options.distance || (ref == 'top' ? el.outerHeight( true ) : el.outerWidth( true ));
|
34
34
|
if (mode == 'show') el.css(ref, motion == 'pos' ? (isNaN(distance) ? "-" + distance : -distance) : distance); // Shift
|
35
35
|
|
36
36
|
// Animation
|
@@ -2,7 +2,7 @@
|
|
2
2
|
//= require jquery.ui.widget
|
3
3
|
|
4
4
|
/*!
|
5
|
-
* jQuery UI Accordion 1.8.
|
5
|
+
* jQuery UI Accordion 1.8.22
|
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.
|
524
|
+
version: "1.8.22",
|
525
525
|
animations: {
|
526
526
|
slide: function( options, additions ) {
|
527
527
|
options = $.extend({
|
@@ -1,7 +1,7 @@
|
|
1
1
|
//= require jquery
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI 1.8.
|
4
|
+
* jQuery UI 1.8.22
|
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.
|
23
|
+
version: "1.8.22",
|
24
24
|
|
25
25
|
keyCode: {
|
26
26
|
ALT: 18,
|
@@ -133,49 +133,52 @@ $.fn.extend({
|
|
133
133
|
}
|
134
134
|
});
|
135
135
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
136
|
+
// support: jQuery <1.8
|
137
|
+
if ( !$( "<a>" ).outerWidth( 1 ).jquery ) {
|
138
|
+
$.each( [ "Width", "Height" ], function( i, name ) {
|
139
|
+
var side = name === "Width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ],
|
140
|
+
type = name.toLowerCase(),
|
141
|
+
orig = {
|
142
|
+
innerWidth: $.fn.innerWidth,
|
143
|
+
innerHeight: $.fn.innerHeight,
|
144
|
+
outerWidth: $.fn.outerWidth,
|
145
|
+
outerHeight: $.fn.outerHeight
|
146
|
+
};
|
147
|
+
|
148
|
+
function reduce( elem, size, border, margin ) {
|
149
|
+
$.each( side, function() {
|
150
|
+
size -= parseFloat( $.curCSS( elem, "padding" + this, true) ) || 0;
|
151
|
+
if ( border ) {
|
152
|
+
size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true) ) || 0;
|
153
|
+
}
|
154
|
+
if ( margin ) {
|
155
|
+
size -= parseFloat( $.curCSS( elem, "margin" + this, true) ) || 0;
|
156
|
+
}
|
157
|
+
});
|
158
|
+
return size;
|
159
|
+
}
|
145
160
|
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
if ( border ) {
|
150
|
-
size -= parseFloat( $.curCSS( elem, "border" + this + "Width", true) ) || 0;
|
151
|
-
}
|
152
|
-
if ( margin ) {
|
153
|
-
size -= parseFloat( $.curCSS( elem, "margin" + this, true) ) || 0;
|
161
|
+
$.fn[ "inner" + name ] = function( size ) {
|
162
|
+
if ( size === undefined ) {
|
163
|
+
return orig[ "inner" + name ].call( this );
|
154
164
|
}
|
155
|
-
});
|
156
|
-
return size;
|
157
|
-
}
|
158
|
-
|
159
|
-
$.fn[ "inner" + name ] = function( size ) {
|
160
|
-
if ( size === undefined ) {
|
161
|
-
return orig[ "inner" + name ].call( this );
|
162
|
-
}
|
163
165
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
166
|
+
return this.each(function() {
|
167
|
+
$( this ).css( type, reduce( this, size ) + "px" );
|
168
|
+
});
|
169
|
+
};
|
168
170
|
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
171
|
+
$.fn[ "outer" + name] = function( size, margin ) {
|
172
|
+
if ( typeof size !== "number" ) {
|
173
|
+
return orig[ "outer" + name ].call( this, size );
|
174
|
+
}
|
173
175
|
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
});
|
176
|
+
return this.each(function() {
|
177
|
+
$( this).css( type, reduce( this, size, true, margin ) + "px" );
|
178
|
+
});
|
179
|
+
};
|
180
|
+
});
|
181
|
+
}
|
179
182
|
|
180
183
|
// selectors
|
181
184
|
function focusable( element, isTabIndexNotNaN ) {
|
@@ -207,9 +210,16 @@ function visible( element ) {
|
|
207
210
|
}
|
208
211
|
|
209
212
|
$.extend( $.expr[ ":" ], {
|
210
|
-
data:
|
211
|
-
|
212
|
-
|
213
|
+
data: $.expr.createPseudo ?
|
214
|
+
$.expr.createPseudo(function( dataName ) {
|
215
|
+
return function( elem ) {
|
216
|
+
return !!$.data( elem, dataName );
|
217
|
+
};
|
218
|
+
}) :
|
219
|
+
// support: jQuery <1.8
|
220
|
+
function( elem, i, match ) {
|
221
|
+
return !!$.data( elem, match[ 3 ] );
|
222
|
+
},
|
213
223
|
|
214
224
|
focusable: function( element ) {
|
215
225
|
return focusable( element, !isNaN( $.attr( element, "tabindex" ) ) );
|
@@ -247,6 +257,11 @@ $(function() {
|
|
247
257
|
body.removeChild( div ).style.display = "none";
|
248
258
|
});
|
249
259
|
|
260
|
+
// jQuery <1.4.3 uses curCSS, in 1.4.3 - 1.7.2 curCSS = css, 1.8+ only has css
|
261
|
+
if ( !$.curCSS ) {
|
262
|
+
$.curCSS = $.css;
|
263
|
+
}
|
264
|
+
|
250
265
|
|
251
266
|
|
252
267
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
//= require jquery.ui.core
|
2
2
|
|
3
3
|
/*!
|
4
|
-
* jQuery UI Datepicker 1.8.
|
4
|
+
* jQuery UI Datepicker 1.8.22
|
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.
|
17
|
+
$.extend($.ui, { datepicker: { version: "1.8.22" } });
|
18
18
|
|
19
19
|
var PROP_NAME = 'datepicker';
|
20
20
|
var dpuuid = new Date().getTime();
|
@@ -310,7 +310,7 @@ $.extend(Datepicker.prototype, {
|
|
310
310
|
this.uuid += 1;
|
311
311
|
var id = 'dp' + this.uuid;
|
312
312
|
this._dialogInput = $('<input type="text" id="' + id +
|
313
|
-
'" style="position: absolute; top: -100px; width: 0px;
|
313
|
+
'" style="position: absolute; top: -100px; width: 0px;"/>');
|
314
314
|
this._dialogInput.keydown(this._doKeyDown);
|
315
315
|
$('body').append(this._dialogInput);
|
316
316
|
inst = this._dialogInst = this._newInst(this._dialogInput, false);
|
@@ -716,6 +716,7 @@ $.extend(Datepicker.prototype, {
|
|
716
716
|
var borders = $.datepicker._getBorders(inst.dpDiv);
|
717
717
|
instActive = inst; // for delegate hover events
|
718
718
|
inst.dpDiv.empty().append(this._generateHTML(inst));
|
719
|
+
this._attachHandlers(inst);
|
719
720
|
var cover = inst.dpDiv.find('iframe.ui-datepicker-cover'); // IE6- only
|
720
721
|
if( !!cover.length ){ //avoid call to outerXXXX() when not in IE6
|
721
722
|
cover.css({left: -borders[0], top: -borders[1], width: inst.dpDiv.outerWidth(), height: inst.dpDiv.outerHeight()})
|
@@ -766,8 +767,8 @@ $.extend(Datepicker.prototype, {
|
|
766
767
|
var dpHeight = inst.dpDiv.outerHeight();
|
767
768
|
var inputWidth = inst.input ? inst.input.outerWidth() : 0;
|
768
769
|
var inputHeight = inst.input ? inst.input.outerHeight() : 0;
|
769
|
-
var viewWidth = document.documentElement.clientWidth + $(document).scrollLeft();
|
770
|
-
var viewHeight = document.documentElement.clientHeight + $(document).scrollTop();
|
770
|
+
var viewWidth = document.documentElement.clientWidth + (isFixed ? 0 : $(document).scrollLeft());
|
771
|
+
var viewHeight = document.documentElement.clientHeight + (isFixed ? 0 : $(document).scrollTop());
|
771
772
|
|
772
773
|
offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0);
|
773
774
|
offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0;
|
@@ -1404,6 +1405,43 @@ $.extend(Datepicker.prototype, {
|
|
1404
1405
|
return startDate;
|
1405
1406
|
},
|
1406
1407
|
|
1408
|
+
/* Attach the onxxx handlers. These are declared statically so
|
1409
|
+
* they work with static code transformers like Caja.
|
1410
|
+
*/
|
1411
|
+
_attachHandlers: function(inst) {
|
1412
|
+
var stepMonths = this._get(inst, 'stepMonths');
|
1413
|
+
var id = '#' + inst.id;
|
1414
|
+
inst.dpDiv.find('[data-handler]').map(function () {
|
1415
|
+
var handler = {
|
1416
|
+
prev: function () {
|
1417
|
+
window['DP_jQuery_' + dpuuid].datepicker._adjustDate(id, -stepMonths, 'M');
|
1418
|
+
},
|
1419
|
+
next: function () {
|
1420
|
+
window['DP_jQuery_' + dpuuid].datepicker._adjustDate(id, +stepMonths, 'M');
|
1421
|
+
},
|
1422
|
+
hide: function () {
|
1423
|
+
window['DP_jQuery_' + dpuuid].datepicker._hideDatepicker();
|
1424
|
+
},
|
1425
|
+
today: function () {
|
1426
|
+
window['DP_jQuery_' + dpuuid].datepicker._gotoToday(id);
|
1427
|
+
},
|
1428
|
+
selectDay: function () {
|
1429
|
+
window['DP_jQuery_' + dpuuid].datepicker._selectDay(id, +this.getAttribute('data-month'), +this.getAttribute('data-year'), this);
|
1430
|
+
return false;
|
1431
|
+
},
|
1432
|
+
selectMonth: function () {
|
1433
|
+
window['DP_jQuery_' + dpuuid].datepicker._selectMonthYear(id, this, 'M');
|
1434
|
+
return false;
|
1435
|
+
},
|
1436
|
+
selectYear: function () {
|
1437
|
+
window['DP_jQuery_' + dpuuid].datepicker._selectMonthYear(id, this, 'Y');
|
1438
|
+
return false;
|
1439
|
+
}
|
1440
|
+
};
|
1441
|
+
$(this).bind(this.getAttribute('data-event'), handler[this.getAttribute('data-handler')]);
|
1442
|
+
});
|
1443
|
+
},
|
1444
|
+
|
1407
1445
|
/* Generate the HTML for the current state of the date picker. */
|
1408
1446
|
_generateHTML: function(inst) {
|
1409
1447
|
var today = new Date();
|
@@ -1446,8 +1484,7 @@ $.extend(Datepicker.prototype, {
|
|
1446
1484
|
this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)),
|
1447
1485
|
this._getFormatConfig(inst)));
|
1448
1486
|
var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ?
|
1449
|
-
'<a class="ui-datepicker-prev ui-corner-all"
|
1450
|
-
'.datepicker._adjustDate(\'#' + inst.id + '\', -' + stepMonths + ', \'M\');"' +
|
1487
|
+
'<a class="ui-datepicker-prev ui-corner-all" data-handler="prev" data-event="click"' +
|
1451
1488
|
' title="' + prevText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>' :
|
1452
1489
|
(hideIfNoPrevNext ? '' : '<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+ prevText +'"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'e' : 'w') + '">' + prevText + '</span></a>'));
|
1453
1490
|
var nextText = this._get(inst, 'nextText');
|
@@ -1455,19 +1492,17 @@ $.extend(Datepicker.prototype, {
|
|
1455
1492
|
this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)),
|
1456
1493
|
this._getFormatConfig(inst)));
|
1457
1494
|
var next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ?
|
1458
|
-
'<a class="ui-datepicker-next ui-corner-all"
|
1459
|
-
'.datepicker._adjustDate(\'#' + inst.id + '\', +' + stepMonths + ', \'M\');"' +
|
1495
|
+
'<a class="ui-datepicker-next ui-corner-all" data-handler="next" data-event="click"' +
|
1460
1496
|
' title="' + nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '">' + nextText + '</span></a>' :
|
1461
1497
|
(hideIfNoPrevNext ? '' : '<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+ nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + ( isRTL ? 'w' : 'e') + '">' + nextText + '</span></a>'));
|
1462
1498
|
var currentText = this._get(inst, 'currentText');
|
1463
1499
|
var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today);
|
1464
1500
|
currentText = (!navigationAsDateFormat ? currentText :
|
1465
1501
|
this.formatDate(currentText, gotoDate, this._getFormatConfig(inst)));
|
1466
|
-
var controls = (!inst.inline ? '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all"
|
1467
|
-
|
1502
|
+
var controls = (!inst.inline ? '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">' +
|
1503
|
+
this._get(inst, 'closeText') + '</button>' : '');
|
1468
1504
|
var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : '') +
|
1469
|
-
(this._isInRange(inst, gotoDate) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all"
|
1470
|
-
'.datepicker._gotoToday(\'#' + inst.id + '\');"' +
|
1505
|
+
(this._isInRange(inst, gotoDate) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" data-handler="today" data-event="click"' +
|
1471
1506
|
'>' + currentText + '</button>' : '') + (isRTL ? '' : controls) + '</div>' : '';
|
1472
1507
|
var firstDay = parseInt(this._get(inst, 'firstDay'),10);
|
1473
1508
|
firstDay = (isNaN(firstDay) ? 0 : firstDay);
|
@@ -1546,8 +1581,7 @@ $.extend(Datepicker.prototype, {
|
|
1546
1581
|
(printDate.getTime() == currentDate.getTime() ? ' ' + this._currentClass : '') + // highlight selected day
|
1547
1582
|
(printDate.getTime() == today.getTime() ? ' ui-datepicker-today' : '')) + '"' + // highlight today (if different)
|
1548
1583
|
((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : '') + // cell title
|
1549
|
-
(unselectable ? '' : '
|
1550
|
-
inst.id + '\',' + printDate.getMonth() + ',' + printDate.getFullYear() + ', this);return false;"') + '>' + // actions
|
1584
|
+
(unselectable ? '' : ' data-handler="selectDay" data-event="click" data-month="' + printDate.getMonth() + '" data-year="' + printDate.getFullYear() + '"') + '>' + // actions
|
1551
1585
|
(otherMonth && !showOtherMonths ? ' ' : // display for other months
|
1552
1586
|
(unselectable ? '<span class="ui-state-default">' + printDate.getDate() + '</span>' : '<a class="ui-state-default' +
|
1553
1587
|
(printDate.getTime() == today.getTime() ? ' ui-state-highlight' : '') +
|
@@ -1590,9 +1624,7 @@ $.extend(Datepicker.prototype, {
|
|
1590
1624
|
else {
|
1591
1625
|
var inMinYear = (minDate && minDate.getFullYear() == drawYear);
|
1592
1626
|
var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear);
|
1593
|
-
monthHtml += '<select class="ui-datepicker-month" '
|
1594
|
-
'onchange="DP_jQuery_' + dpuuid + '.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'M\');" ' +
|
1595
|
-
'>';
|
1627
|
+
monthHtml += '<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';
|
1596
1628
|
for (var month = 0; month < 12; month++) {
|
1597
1629
|
if ((!inMinYear || month >= minDate.getMonth()) &&
|
1598
1630
|
(!inMaxYear || month <= maxDate.getMonth()))
|
@@ -1623,9 +1655,7 @@ $.extend(Datepicker.prototype, {
|
|
1623
1655
|
var endYear = Math.max(year, determineYear(years[1] || ''));
|
1624
1656
|
year = (minDate ? Math.max(year, minDate.getFullYear()) : year);
|
1625
1657
|
endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear);
|
1626
|
-
inst.yearshtml += '<select class="ui-datepicker-year" '
|
1627
|
-
'onchange="DP_jQuery_' + dpuuid + '.datepicker._selectMonthYear(\'#' + inst.id + '\', this, \'Y\');" ' +
|
1628
|
-
'>';
|
1658
|
+
inst.yearshtml += '<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';
|
1629
1659
|
for (; year <= endYear; year++) {
|
1630
1660
|
inst.yearshtml += '<option value="' + year + '"' +
|
1631
1661
|
(year == drawYear ? ' selected="selected"' : '') +
|
@@ -1817,7 +1847,7 @@ $.fn.datepicker = function(options){
|
|
1817
1847
|
$.datepicker = new Datepicker(); // singleton instance
|
1818
1848
|
$.datepicker.initialized = false;
|
1819
1849
|
$.datepicker.uuid = new Date().getTime();
|
1820
|
-
$.datepicker.version = "1.8.
|
1850
|
+
$.datepicker.version = "1.8.22";
|
1821
1851
|
|
1822
1852
|
// Workaround for #4055
|
1823
1853
|
// 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.
|
6
|
+
* jQuery UI Dialog 1.8.22
|
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.
|
709
|
+
version: "1.8.22",
|
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.22
|
7
7
|
*
|
8
8
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -517,7 +517,7 @@ $.widget("ui.draggable", $.ui.mouse, {
|
|
517
517
|
});
|
518
518
|
|
519
519
|
$.extend($.ui.draggable, {
|
520
|
-
version: "1.8.
|
520
|
+
version: "1.8.22"
|
521
521
|
});
|
522
522
|
|
523
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.
|
7
|
+
* jQuery UI Droppable 1.8.22
|
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.
|
155
|
+
version: "1.8.22"
|
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 Progressbar 1.8.
|
5
|
+
* jQuery UI Progressbar 1.8.22
|
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.
|
109
|
+
version: "1.8.22"
|
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.22
|
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.
|
547
|
+
version: "1.8.22"
|
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.
|
6
|
+
* jQuery UI Selectable 1.8.22
|
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.
|
268
|
+
version: "1.8.22"
|
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.
|
6
|
+
* jQuery UI Slider 1.8.22
|
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.
|
663
|
+
version: "1.8.22"
|
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.
|
6
|
+
* jQuery UI Sortable 1.8.22
|
7
7
|
*
|
8
8
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
9
9
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -1038,6 +1038,8 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
1038
1038
|
for (var i=0; i < delayedTriggers.length; i++) { delayedTriggers[i].call(this, event); }; //Trigger all delayed events
|
1039
1039
|
this._trigger("stop", event, this._uiHash());
|
1040
1040
|
}
|
1041
|
+
|
1042
|
+
this.fromOutside = false;
|
1041
1043
|
return false;
|
1042
1044
|
}
|
1043
1045
|
|
@@ -1080,7 +1082,7 @@ $.widget("ui.sortable", $.ui.mouse, {
|
|
1080
1082
|
});
|
1081
1083
|
|
1082
1084
|
$.extend($.ui.sortable, {
|
1083
|
-
version: "1.8.
|
1085
|
+
version: "1.8.22"
|
1084
1086
|
});
|
1085
1087
|
|
1086
1088
|
})(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.22
|
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.
|
704
|
+
version: "1.8.22"
|
705
705
|
});
|
706
706
|
|
707
707
|
/*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* jQuery UI Autocomplete 1.8.
|
2
|
+
* jQuery UI Autocomplete 1.8.22
|
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
|
+
* jQuery UI Menu 1.8.22
|
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 Datepicker 1.8.
|
2
|
+
* jQuery UI Datepicker 1.8.22
|
3
3
|
*
|
4
4
|
* Copyright 2012, AUTHORS.txt (http://jqueryui.com/about)
|
5
5
|
* Dual licensed under the MIT or GPL Version 2 licenses.
|
@@ -60,8 +60,6 @@
|
|
60
60
|
|
61
61
|
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
62
62
|
.ui-datepicker-cover {
|
63
|
-
display: none; /*sorry for IE5*/
|
64
|
-
display/**/: block; /*sorry for IE5*/
|
65
63
|
position: absolute; /*must have*/
|
66
64
|
z-index: -1; /*must have*/
|
67
65
|
filter: mask(); /*must have*/
|
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: 1.
|
4
|
+
version: 1.1.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-
|
12
|
+
date: 2012-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -222,7 +222,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
222
222
|
version: '0'
|
223
223
|
segments:
|
224
224
|
- 0
|
225
|
-
hash:
|
225
|
+
hash: 2353722525223727946
|
226
226
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
227
227
|
none: false
|
228
228
|
requirements:
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
version: 1.3.6
|
232
232
|
requirements: []
|
233
233
|
rubyforge_project:
|
234
|
-
rubygems_version: 1.8.
|
234
|
+
rubygems_version: 1.8.23
|
235
235
|
signing_key:
|
236
236
|
specification_version: 3
|
237
237
|
summary: jQuery UI packaged for the Rails asset pipeline
|