r3621 committed - Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, too...

r3621 committed - Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, too...

Revision: 3621
Author: scott.gonzalez
Date: Wed Jan 6 19:19:50 2010
Log: Merged in /branches/dev r3251:3620
excluding autocomplete, modal,
tooltip, menu; including menu static tests
.
http://code.google.com/p/jquery-ui/source/detail?r=3621
Added:
/trunk/demos/button
/trunk/external/jquery.metadata.js
/trunk/tests/static/button
/trunk/tests/static/menu
/trunk/tests/unit/button
/trunk/tests/unit/widget
/trunk/tests/visual/button
/trunk/themes/base/images/ui-anim.basic.16x16.gif
/trunk/themes/base/ui.button.css
/trunk/ui/jquery.ui.button.js
Modified:
/trunk
/trunk/demos/accordion/collapsible.html
/trunk/demos/datepicker/images/calendar.gif
/trunk/demos/datepicker/localization.html
/trunk/demos/datepicker/other-months.html
/trunk/demos/datepicker/show-week.html
/trunk/demos/dialog/animated.html
/trunk/demos/dialog/default.html
/trunk/demos/dialog/modal-confirmation.html
/trunk/demos/dialog/modal-form.html
/trunk/demos/dialog/modal-message.html
/trunk/demos/index.html
/trunk/demos/position/cycler.html
/trunk/demos/position/default.html
/trunk/demos/slider/multiple-vertical.html
/trunk/demos/slider/tabs.html
/trunk/demos/tabs/bottom.html
/trunk/demos/tabs/collapsible.html
/trunk/demos/tabs/manipulation.html
/trunk/external/jquery.cookie-r6165.js
/trunk/tests/jquery.simulate.js
/trunk/tests/unit/accordion/accordion.html
/trunk/tests/unit/accordion/accordion_core.js
/trunk/tests/unit/accordion/accordion_options.js
/trunk/tests/unit/core/core.html
/trunk/tests/unit/core/core.js
/trunk/tests/unit/datepicker/datepicker.html
/trunk/tests/unit/datepicker/datepicker_core.js
/trunk/tests/unit/dialog/dialog_core.js
/trunk/tests/unit/draggable/draggable.html
/trunk/tests/unit/draggable/draggable_core.js
/trunk/tests/unit/droppable/droppable.html
/trunk/tests/unit/droppable/droppable_core.js
/trunk/tests/unit/position/position_core.js
/trunk/tests/unit/progressbar/progressbar.html
/trunk/tests/unit/resizable/images
/trunk/tests/unit/resizable/resizable.html
/trunk/tests/unit/selectable/selectable.html
/trunk/tests/unit/slider/slider.html
/trunk/tests/unit/sortable/sortable.html
/trunk/tests/unit/tabs/tabs.html
/trunk/tests/unit/testsuite.css
/trunk/tests/unit/testsuite.js
/trunk/tests/visual/accordion/accordion_option_fillSpace_true.html
/trunk/tests/visual/accordion/accordion_ticket_4322.html
/trunk/tests/visual/accordion/accordion_ticket_4444.html
/trunk/tests/visual/compound/accordion_tabs.html
/trunk/tests/visual/compound/datepicker_dialog.html
/trunk/tests/visual/compound/draggable_accordion.html
/trunk/tests/visual/compound/tabs_tabs.html
/trunk/tests/visual/dialog/dialog_option_modal_false.html
/trunk/tests/visual/dialog/dialog_option_modal_true.html
/trunk/tests/visual/index.html
/trunk/tests/visual/sortable/sortable_ticket_4551.html
/trunk/themes/base/ui.base.css
/trunk/themes/base/ui.theme.css
/trunk/ui/i18n/jquery.ui.datepicker-eu.js
/trunk/ui/i18n/jquery.ui.datepicker-fr-CH.js
/trunk/ui/i18n/jquery.ui.datepicker-vi.js
/trunk/ui/jquery.ui.accordion.js
/trunk/ui/jquery.ui.datepicker.js
/trunk/ui/jquery.ui.dialog.js
/trunk/ui/jquery.ui.draggable.js
/trunk/ui/jquery.ui.droppable.js
/trunk/ui/jquery.ui.mouse.js
/trunk/ui/jquery.ui.position.js
/trunk/ui/jquery.ui.progressbar.js
/trunk/ui/jquery.ui.resizable.js
/trunk/ui/jquery.ui.selectable.js
/trunk/ui/jquery.ui.slider.js
/trunk/ui/jquery.ui.sortable.js
/trunk/ui/jquery.ui.stackfix.js
/trunk/ui/jquery.ui.tabs.js
/trunk/ui/jquery.ui.widget.js
Replaced:
/trunk/demos/button/checkbox.html
/trunk/demos/button/default.html
/trunk/demos/button/icons.html
/trunk/demos/button/index.html
/trunk/demos/button/radio.html
/trunk/demos/button/splitbutton.html
/trunk/demos/button/toolbar.html
/trunk/tests/static/button/default.html
/trunk/tests/static/menu/default.html
/trunk/tests/unit/button/button.html
/trunk/tests/unit/button/button_core.js
/trunk/tests/unit/button/button_defaults.js
/trunk/tests/unit/button/button_events.js
/trunk/tests/unit/button/button_methods.js
/trunk/tests/unit/button/button_options.js
/trunk/tests/unit/button/button_tickets.js
/trunk/tests/unit/widget/widget.html
/trunk/tests/unit/widget/widget.js
/trunk/tests/visual/button/default.html
=======================================
--- /dev/null
/trunk/external/jquery.metadata.js    Wed Jan 6 19:19:50 2010
@@ -0,0
1,122 @@
/*
* Metadata - jQuery plugin for parsing metadata from elements
*
* Copyright
c
2006 John Resig, Yehuda Katz, J�örn Zaefferer, Paul
McLanahan
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Revision: $Id: jquery.metadata.js 4187 2007-12-16 17:15:27Z
joern.zaefferer $
*
*/
/**
* Sets the type of metadata to use. Metadata is encoded in JSON, and each
property
* in the JSON will become a property of the element itself.
*
* There are three supported types of metadata storage:
*
* attr: Inside an attribute. The name parameter indicates *which*
attribute.
*
* class: Inside the class attribute, wrapped in curly braces: { }
*
* elem: Inside a child element
e.g. a script tag
. The
* name parameter indicates *which* element.
*
* The metadata for an element is loaded the first time the element is
accessed via jQuery.
*
* As a result, you can define the metadata type, use $
expr
to load the
metadata into the elements
* matched by expr, then redefine the metadata type and run another
$
expr
for other elements.
*
* @name $.metadata.setType
*
* @example <p id="one" class="some_class {item_id: 1,
item_label: 'Label'}">This is a p
* @before $.metadata.setType
"class"
* @after $
"#one"
.metadata
.item_id == 1;
$
"#one"
.metadata
.item_label == "Label"
* @desc Reads metadata from the class attribute
*
* @example <p id="one" class="some_class" data="{item_id: 1,
item_label: 'Label'}">This is a p
* @before $.metadata.setType
"attr", "data"
* @after $
"#one"
.metadata
.item_id == 1;
$
"#one"
.metadata
.item_label == "Label"
* @desc Reads metadata from a "data" attribute
*
* @example <p id="one" class="some_class"><script>{item_id: 1,
item_label: 'Label'}</script>This is a p
* @before $.metadata.setType
"elem", "script"
* @after $
"#one"
.metadata
.item_id == 1;
$
"#one"
.metadata
.item_label == "Label"
* @desc Reads metadata from a nested script element
*
* @param String type The encoding type
* @param String name The name of the attribute to be used to get metadata
optional
* @cat Plugins/Metadata
* @descr Sets the type of encoding to be used when loading metadata for
the first time
* @type undefined
* @see metadata
*/
function
$
{
$.extend
{
    metadata : {
        defaults : {
            type: 'class',
            name: 'metadata',
            cre: /
{.*}
/,
            single: 'metadata'
        },
        setType: function
type, name
{
            this.defaults.type = type;
            this.defaults.name = name;
        },
        get: function
elem, opts
{
            var settings = $.extend
{},this.defaults,opts
;
            // check for empty string in single property
            if
!settings.single.length
settings.single = 'metadata';
            var data = $.data
elem, settings.single
;
            // returned cached data if it already exists
            if
data
return data;
            data = "{}";
            if
settings.type == "class"
{
                var m = settings.cre.exec
elem.className
;
                if
m
                    data = m[1];
            } else if
settings.type == "elem"
{
                if
!elem.getElementsByTagName
                    return undefined;
                var e = elem.getElementsByTagName
settings.name
;
                if
e.length
                    data = $.trim
e[0].innerHTML
;
            } else if
elem.getAttribute != undefined
{
                var attr = elem.getAttribute
settings.name
;
                if
attr
                    data = attr;
            }
            if
data.indexOf
'{'
<0
            data = "{"
data
"}";
            data = eval
"
"
data
"
"
;
            $.data
elem, settings.single, data
;
            return data;
        }
    }
}
;
/**
* Returns the metadata object for the first member of the jQuery object.
*
* @name metadata
* @descr Returns element's metadata object
* @param Object opts An object contianing settings to override the
defaults
* @type jQuery
* @cat Plugins/Metadata
*/
$.fn.metadata = function
opts
{
    return $.metadata.get
this[0], opts
;
};
}
jQuery
;
=======================================
--- /dev/null
/trunk/themes/base/images/ui-anim.basic.16x16.gif    Wed Jan 6 19:19:50
2010
@@ -0,0
1,43 @@
GIF89a