Changeset 12525 for trunk/themes/default/js/ui/jquery.ui.autocomplete.js
- Timestamp:
- Oct 28, 2011, 3:25:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/themes/default/js/ui/jquery.ui.autocomplete.js
r9559 r12525 1 1 /* 2 * jQuery UI Autocomplete 1.8.1 02 * jQuery UI Autocomplete 1.8.16 3 3 * 4 4 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) … … 21 21 options: { 22 22 appendTo: "body", 23 autoFocus: false, 23 24 delay: 300, 24 25 minLength: 1, … … 48 49 }) 49 50 .bind( "keydown.autocomplete", function( event ) { 50 if ( self.options.disabled || self.element. attr( "readonly" ) ) {51 if ( self.options.disabled || self.element.propAttr( "readOnly" ) ) { 51 52 return; 52 53 } … … 366 367 of: this.element 367 368 }, this.options.position )); 369 370 if ( this.options.autoFocus ) { 371 this.menu.next( new $.Event("mouseover") ); 372 } 368 373 }, 369 374 … … 486 491 if (this.hasScroll()) { 487 492 var offset = item.offset().top - this.element.offset().top, 488 scroll = this.element. attr("scrollTop"),493 scroll = this.element.scrollTop(), 489 494 elementHeight = this.element.height(); 490 495 if (offset < 0) { 491 this.element. attr("scrollTop",scroll + offset);496 this.element.scrollTop( scroll + offset); 492 497 } else if (offset >= elementHeight) { 493 this.element. attr("scrollTop",scroll + offset - elementHeight + item.height());498 this.element.scrollTop( scroll + offset - elementHeight + item.height()); 494 499 } 495 500 } … … 597 602 598 603 hasScroll: function() { 599 return this.element.height() < this.element .attr("scrollHeight");604 return this.element.height() < this.element[ $.fn.prop ? "prop" : "attr" ]("scrollHeight"); 600 605 }, 601 606
Note: See TracChangeset
for help on using the changeset viewer.