From 15b0be3af0a43b0bdff76fc659190f913d7c373d Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 29 Jul 2011 00:08:22 +0200 Subject: buttons --- src/main/webapp/js/jquery.ui.button.js | 417 +++++++++++++++++++++++++++++++++ src/main/webapp/wayf-ndn.jsp | 1 + 2 files changed, 418 insertions(+) create mode 100644 src/main/webapp/js/jquery.ui.button.js (limited to 'src/main') diff --git a/src/main/webapp/js/jquery.ui.button.js b/src/main/webapp/js/jquery.ui.button.js new file mode 100644 index 0000000..32e00e9 --- /dev/null +++ b/src/main/webapp/js/jquery.ui.button.js @@ -0,0 +1,417 @@ +/* + * jQuery UI Button @VERSION + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Button + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function( $, undefined ) { + +var lastActive, startXPos, startYPos, clickDragged, + baseClasses = "ui-button ui-widget ui-state-default ui-corner-all", + stateClasses = "ui-state-hover ui-state-active ", + typeClasses = "ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only", + formResetHandler = function() { + var buttons = $( this ).find( ":ui-button" ); + setTimeout(function() { + buttons.button( "refresh" ); + }, 1 ); + }, + radioGroup = function( radio ) { + var name = radio.name, + form = radio.form, + radios = $( [] ); + if ( name ) { + if ( form ) { + radios = $( form ).find( "[name='" + name + "']" ); + } else { + radios = $( "[name='" + name + "']", radio.ownerDocument ) + .filter(function() { + return !this.form; + }); + } + } + return radios; + }; + +$.widget( "ui.button", { + defaultElement: "