Ignore:
Timestamp:
Oct 28, 2011, 3:25:54 PM (13 years ago)
Author:
patdenice
Message:

feature:2487
Update jQuery to 1.6.4 and jQuery UI to 1.8.16

File:
1 edited

Legend:

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

    r9559 r12525  
    11/*
    2  * jQuery UI Autocomplete 1.8.10
     2 * jQuery UI Autocomplete 1.8.16
    33 *
    44 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
     
    2121        options: {
    2222                appendTo: "body",
     23                autoFocus: false,
    2324                delay: 300,
    2425                minLength: 1,
     
    4849                        })
    4950                        .bind( "keydown.autocomplete", function( event ) {
    50                                 if ( self.options.disabled || self.element.attr( "readonly" ) ) {
     51                                if ( self.options.disabled || self.element.propAttr( "readOnly" ) ) {
    5152                                        return;
    5253                                }
     
    366367                        of: this.element
    367368                }, this.options.position ));
     369
     370                if ( this.options.autoFocus ) {
     371                        this.menu.next( new $.Event("mouseover") );
     372                }
    368373        },
    369374
     
    486491                if (this.hasScroll()) {
    487492                        var offset = item.offset().top - this.element.offset().top,
    488                                 scroll = this.element.attr("scrollTop"),
     493                                scroll = this.element.scrollTop(),
    489494                                elementHeight = this.element.height();
    490495                        if (offset < 0) {
    491                                 this.element.attr("scrollTop", scroll + offset);
     496                                this.element.scrollTop( scroll + offset);
    492497                        } else if (offset >= elementHeight) {
    493                                 this.element.attr("scrollTop", scroll + offset - elementHeight + item.height());
     498                                this.element.scrollTop( scroll + offset - elementHeight + item.height());
    494499                        }
    495500                }
     
    597602
    598603        hasScroll: function() {
    599                 return this.element.height() < this.element.attr("scrollHeight");
     604                return this.element.height() < this.element[ $.fn.prop ? "prop" : "attr" ]("scrollHeight");
    600605        },
    601606
Note: See TracChangeset for help on using the changeset viewer.