Skip to content
Snippets Groups Projects
Select Git revision
  • master
1 result

jquery-ui.js

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    jquery-ui.js 425.90 KiB
    /*! jQuery UI - v1.10.2 - 2013-03-14
    * http://jqueryui.com
    * Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
    * Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
    (function( $, undefined ) {
    
    var uuid = 0,
    	runiqueId = /^ui-id-\d+$/;
    
    // $.ui might exist from components with no dependencies, e.g., $.ui.position
    $.ui = $.ui || {};
    
    $.extend( $.ui, {
    	version: "1.10.2",
    
    	keyCode: {
    		BACKSPACE: 8,
    		COMMA: 188,
    		DELETE: 46,
    		DOWN: 40,
    		END: 35,
    		ENTER: 13,
    		ESCAPE: 27,
    		HOME: 36,
    		LEFT: 37,
    		NUMPAD_ADD: 107,
    		NUMPAD_DECIMAL: 110,
    		NUMPAD_DIVIDE: 111,
    		NUMPAD_ENTER: 108,
    		NUMPAD_MULTIPLY: 106,
    		NUMPAD_SUBTRACT: 109,
    		PAGE_DOWN: 34,
    		PAGE_UP: 33,
    		PERIOD: 190,
    		RIGHT: 39,
    		SPACE: 32,
    		TAB: 9,
    		UP: 38
    	}
    });
    
    // plugins
    $.fn.extend({
    	focus: (function( orig ) {
    		return function( delay, fn ) {
    			return typeof delay === "number" ?
    				this.each(function() {
    					var elem = this;
    					setTimeout(function() {
    						$( elem ).focus();
    						if ( fn ) {
    							fn.call( elem );
    						}
    					}, delay );
    				}) :
    				orig.apply( this, arguments );
    		};
    	})( $.fn.focus ),
    
    	scrollParent: function() {
    		var scrollParent;
    		if (($.ui.ie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) {
    			scrollParent = this.parents().filter(function() {
    				return (/(relative|absolute|fixed)/).test($.css(this,"position")) && (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
    			}).eq(0);
    		} else {
    			scrollParent = this.parents().filter(function() {
    				return (/(auto|scroll)/).test($.css(this,"overflow")+$.css(this,"overflow-y")+$.css(this,"overflow-x"));
    			}).eq(0);
    		}