Documentation

UI/Changelog/1.6

From jQuery JavaScript Library

Jump to: navigation, search

Contents

New Widgets

  • Progressbar

Core

Core

  • Added metadata support to the widget factory.(3187)
  • Added trigger method for triggering callbacks and events in widget factory.
  • Added :data selector that matches elements that have data for a given key.(r454)
  • Added :enableSelection/disableSelection now returns the chain(3174)
  • Added a namespace to the selectstart event handler in $.ui.disableSelection() so we don't remove other event handlers in $.ui.disableSelection().(r542)
  • Added constants for key codes.(3233)
  • Added option method to widgets(3257)
  • Added :tabbable selector to find elements that participate in the tabbing order.(r660)
  • Modified widget factory to prevent access to internal methods through the API(r547
  • Fixed trigger() to be able to return a value from triggerHandler.(r440)
  • Fixed selectionDisable for IE.(r514)
  • Fixed: hasScroll now checks for overflow hidden, since then the user wants the scrollbar to be hidden(r680)
  • Deprecated $.ui.plugin. Use the proxy pattern instead.

Interaction

Draggable

  • Added a revertDuration option since revert no longer checks for numbers (r484)
  • Enhanced minor performance improvements at init (r443)
  • Implemented cssNamespace option, if set to false/null, it won't add a class to the element (r489)
  • Implemented more advanced features to the snap option - you can now pass in an object instead of a boolean into "snap", possible keys are the callbacks snap/release (which both receive ui.snapItem) and items (jQuery selector, defaults to :data(draggable)) (r468)
  • Removed adding the class ui-draggable in favor of the new data selector (r455)
  • Fixed relative position bug (please NEVER check in elem.style just for performance optimizations) (r467)
  • Fixed overflow calculation in the positioning methods (r491)
  • Fixed issue when scroll was set to true, and therefore droppables inside changed their position as well (r492)
  • Fixed IE scrolling but with overflowing containers and appendTo being used (r493)
  • Fixed ugly regression when no overflowed container existed (r495)
  • Fixed regression with convertPositionTo method and scroll offsets (r497)
  • Fixed snapTolerance option instead of default (r526)
  • Fixed: proper usage of _mouseCapture, fixes interaction issues when many plugins are used on the same element (3164)
  • Fixed: wrong class when trying to remove iframeFix divs (3161)
  • Fixed: implemented patch that allows revert to be a callback, receives one argument which is the droppable (3175)
  • Fixed: Draggable CSS classes aren't removed on destroy (3424)
  • Fixed: problem with helper clone (3256)
  • Fixed: Dragging fixed position elements throw error in browsers (3166)
  • Fixed: Containment (resizable and draggable) not working when container has overflow:hidden (3328)

Droppable

  • Add operate in a seperate scope(r487)
  • Implemented cssNamespace option, if set to false/null, it won't add a class to the element(r489)
  • Fixed .is(accept) on init()(r456)
  • Fixed droppables and sortables in the current dragged item are filtered out at start, preventing node hierarchy issues(r487)
  • Removed the addition of "ui-droppable" class which greatly improves intialization time for IE6/7 and FF2(r454)
  • Fixed: proper usage of _mouseCapture, fixes interaction issues when many plugins are used on the same element (3164)
  • Fixed: accept.droppable not an option (3386)
  • Fixed: Droppable Elements jump and move below mouse when page is scrolled down(3268)
  • Fixed: drop is invoked as many times as droppable has been invoked(3275)

Resizable

  • None

Selectable

  • Added missing ui-selectable-helper class to helper/lasso element(r465)

Sortable

  • Added support helper: "original" and fixes tons of issues (placeholder zIndex issue for example).
  • Added support to change the sorting indicator.
  • Added updateOriginalPosition property(r442)
  • Added forcePlaceholderSize option (r682)
  • Enhanced intersectWidth maths accuracy
  • Implemented the option connected (boolean), for function serialize to also serialize connected lists (r472)
  • Fixed an items issue caused the items of the container itself to be doubled if the connected query also match on it (r472)
  • Fixed droppables and sortables in the current dragged item are filtered out at start, preventing node hierarchy issues (r487)
  • Fixed: the outer container is not set to relative anymore, preventing some weird IE bugs (r494)
  • Fixed: beforeStop should work properly in all cases (r543)
  • Fixed: wrong parameter in toArray (r647)
  • Fixed: proper usage of _mouseCapture, fixes interaction issues when many plugins are used on the same element (3164)

Widgets

Accordion

  • Added trigger changestart event when the animation starts (2932)
  • Fixed to use new trigger() method.(r459)
  • Fixed inconsistent accordionchange event arguments (jQuery #3111)
  • Removed deprecated method fn.activate for 1.6 (r691)

Datepicker

  • Added support for mousewheel (r525)
  • Added day-of-year to format and parse date routines (r447)
  • Renamed monthAfterYear setting to showMonthAfterYear (r499)
  • Datepicker div now appends to the document after the datepicker(); function is called instead of automatically on include (r474)
  • Keystrokes not recognised by datepicker are passed onto field (3082)
  • Inline datepicker doesn't initialise from input field (3080)
  • Control order of month and year select boxes using showMonthAfterYear setting (3084)
  • Handle IDs with embedded meta-characters (3108, 3113)
  • Add big previous/next links to scroll by year using showBigPrevNext setting. Use prevBigText and nextBigText for the displayed text and prevBigStatus and nextBigStatus for their status values (3111)
  • Fixed date duplications (again) (3088, 3105, 3281, 3339)
  • Display simultaneously past and current month in datepicker using showCurrentAtPos setting (2818)
  • Esperanto localisation (3170)
  • Corrected assignment/comparison in _changeDatepicker (3165)
  • Added refresh command (3159)
  • Added Croatian localisation (3224)
  • Corrected automatic ID assignment (3180, 3235, 3338)
  • Handle NaN in relative date calculations (3191)
  • Handle errors on getting instance data (3238)
  • Alternate field is now updated when using "setDate" (3267)
  • Made callback signatures consistent: onSelect and onClose return the text form of the date(s), while onChangeMonthYear returns year and month separately (3183)
  • Datepicker position problem in IE 6/7 (3232)
  • Datepicker was displayed when using "setDate" and "change" method (3266)

Dialog

  • Added isOpen method (r537)
  • Fixed to use new trigger() method.
  • Fixed problem with auto margins in IE (3086)
  • Fixed force dialog titlebars to have a full line height when no title is provided (3013)
  • Fixed:If options.title is empty on init, set it to the title attribute of the dialog element (r450)
  • Fixed sizing of overlays in Opera 9.51 (3076)
  • Fixed: Ctrl-Select should use Cmd key on Mac (3169)
  • Fixed: Non-draggable dialogs shouldn't instantiate draggables (3389)
  • Fixed: Non-resizable dialogs shouldn't instantiate resizables (3220)
  • Partial fix: When opening a dialog, give focus to the first tabbable element inside the dialog (3327)
  • Fixed: Prevent tabbing out of modal dialogs (3123)
  • Fixed: Remove title attribute from dialog elements on init (3259)
  • Fixed: Don't allow closing modal dialogs on escape if closeOnEscape is set to false (3253)

Slider

  • Fixed keyboard interaction to match dhtml style guide (3081)
  • Fixes prevent bubbling (and default key behaviour) for slider based key events (3342)

Tabs

  • Fixed to use new trigger() method.(r460)
  • Fixed cookie name generation which wasn't based on DOM element any longer after change in this.element, update cookie after init/add/destroy (3015)
  • Update selected property after add/remove.(3065)