Ignore:
Timestamp:
Mar 7, 2011, 1:58:34 AM (13 years ago)
Author:
patdenice
Message:

Update jQuery UI to 1.8.10.
Improve jquery ui management in template class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/js/ui/jquery.ui.datepicker.js

    r9172 r9559  
    11/*
    2  * jQuery UI Datepicker 1.8.9
     2 * jQuery UI Datepicker 1.8.10
    33 *
    44 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
     
    1313(function( $, undefined ) {
    1414
    15 $.extend($.ui, { datepicker: { version: "1.8.9" } });
     15$.extend($.ui, { datepicker: { version: "1.8.10" } });
    1616
    1717var PROP_NAME = 'datepicker';
     
    701701                        'Class']('ui-datepicker-rtl');
    702702                if (inst == $.datepicker._curInst && $.datepicker._datepickerShowing && inst.input &&
    703                                 inst.input.is(':visible') && !inst.input.is(':disabled'))
     703                                // #6694 - don't focus the input if it's already focused
     704                                // this breaks the change event in IE
     705                                inst.input.is(':visible') && !inst.input.is(':disabled') && inst.input[0] != document.activeElement)
    704706                        inst.input.focus();
    705707                // deffered render of the years select (to avoid flashes on Firefox)
     
    753755                var inst = this._getInst(obj);
    754756                var isRTL = this._get(inst, 'isRTL');
    755         while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) {
     757        while (obj && (obj.type == 'hidden' || obj.nodeType != 1 || $.expr.filters.hidden(obj))) {
    756758            obj = obj[isRTL ? 'previousSibling' : 'nextSibling'];
    757759        }
     
    16551657        /* Find the number of days in a given month. */
    16561658        _getDaysInMonth: function(year, month) {
    1657                 return 32 - new Date(year, month, 32).getDate();
     1659                return 32 - this._daylightSavingAdjust(new Date(year, month, 32)).getDate();
    16581660        },
    16591661
     
    17251727   @return  jQuery object */
    17261728$.fn.datepicker = function(options){
    1727 
     1729       
     1730        /* Verify an empty collection wasn't passed - Fixes #6976 */
     1731        if ( !this.length ) {
     1732                return this;
     1733        }
     1734       
    17281735        /* Initialise the date picker. */
    17291736        if (!$.datepicker.initialized) {
     
    17511758$.datepicker.initialized = false;
    17521759$.datepicker.uuid = new Date().getTime();
    1753 $.datepicker.version = "1.8.9";
     1760$.datepicker.version = "1.8.10";
    17541761
    17551762// Workaround for #4055
Note: See TracChangeset for help on using the changeset viewer.