Changeset 6e5aa8d4aa61dd10ac2708347b900d661285b0f8
- Timestamp:
- 07/13/10 02:01:02 (8 weeks ago)
- Author:
- Jim Garrison <jim@…>
- Children:
- f2b6d3a95619e9d1e1cbebf64b264512711c3698
- Parents:
- 3d2e25991c8b82f523e84aafebb7b408a044fbd1
- git-committer:
- Jim Garrison <jim@jimgarrison.org> / 2010-07-12T23:01:02Z-0700
- Message:
-
upgraded to jqueryui 1.8.2
- Location:
- ductus
- Files:
-
- 1 added
- 1 removed
- 2 modified
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
|
r4d38551
|
r6e5aa8d
|
|
| 1 | 1 | /*! |
| 2 | | * jQuery UI 1.8 |
| | 2 | * jQuery UI 1.8.2 |
| 3 | 3 | * |
| 4 | 4 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 8 | 8 | * http://docs.jquery.com/UI |
| 9 | 9 | */ |
| 10 | | ;jQuery.ui || (function($) { |
| | 10 | |
| | 11 | (function($) { |
| | 12 | |
| | 13 | // prevent duplicate loading |
| | 14 | // this is only a problem because we proxy existing functions |
| | 15 | // and we don't want to double proxy them |
| | 16 | $.ui = $.ui || {}; |
| | 17 | if ($.ui.version) { |
| | 18 | return; |
| | 19 | } |
| 11 | 20 | |
| 12 | 21 | //Helper functions and ui object |
| 13 | | $.ui = { |
| 14 | | version: "1.8", |
| | 22 | $.extend($.ui, { |
| | 23 | version: "1.8.2", |
| 15 | 24 | |
| 16 | 25 | // $.ui.plugin is deprecated. Use the proxy pattern instead. |
| … |
… |
|
| 71 | 80 | |
| 72 | 81 | keyCode: { |
| | 82 | ALT: 18, |
| 73 | 83 | BACKSPACE: 8, |
| 74 | 84 | CAPS_LOCK: 20, |
| 75 | 85 | COMMA: 188, |
| | 86 | COMMAND: 91, |
| | 87 | COMMAND_LEFT: 91, // COMMAND |
| | 88 | COMMAND_RIGHT: 93, |
| 76 | 89 | CONTROL: 17, |
| 77 | 90 | DELETE: 46, |
| … |
… |
|
| 83 | 96 | INSERT: 45, |
| 84 | 97 | LEFT: 37, |
| | 98 | MENU: 93, // COMMAND_RIGHT |
| 85 | 99 | NUMPAD_ADD: 107, |
| 86 | 100 | NUMPAD_DECIMAL: 110, |
| … |
… |
|
| 96 | 110 | SPACE: 32, |
| 97 | 111 | TAB: 9, |
| 98 | | UP: 38 |
| | 112 | UP: 38, |
| | 113 | WINDOWS: 91 // COMMAND |
| 99 | 114 | } |
| 100 | | }; |
| | 115 | }); |
| 101 | 116 | |
| 102 | 117 | //jQuery plugins |
| … |
… |
|
| 118 | 133 | return this |
| 119 | 134 | .attr('unselectable', 'off') |
| 120 | | .css('MozUserSelect', '') |
| 121 | | .unbind('selectstart.ui'); |
| | 135 | .css('MozUserSelect', ''); |
| 122 | 136 | }, |
| 123 | 137 | |
| … |
… |
|
| 125 | 139 | return this |
| 126 | 140 | .attr('unselectable', 'on') |
| 127 | | .css('MozUserSelect', 'none') |
| 128 | | .bind('selectstart.ui', function() { return false; }); |
| | 141 | .css('MozUserSelect', 'none'); |
| 129 | 142 | }, |
| 130 | 143 | |
| … |
… |
|
| 203 | 216 | })(jQuery); |
| 204 | 217 | /*! |
| 205 | | * jQuery UI Widget 1.8 |
| | 218 | * jQuery UI Widget 1.8.2 |
| 206 | 219 | * |
| 207 | 220 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 359 | 372 | .removeClass( |
| 360 | 373 | this.widgetBaseClass + "-disabled " + |
| 361 | | this.namespace + "-state-disabled" ); |
| | 374 | "ui-state-disabled" ); |
| 362 | 375 | }, |
| 363 | 376 | |
| … |
… |
|
| 396 | 409 | [ value ? "addClass" : "removeClass"]( |
| 397 | 410 | this.widgetBaseClass + "-disabled" + " " + |
| 398 | | this.namespace + "-state-disabled" ) |
| | 411 | "ui-state-disabled" ) |
| 399 | 412 | .attr( "aria-disabled", value ); |
| 400 | 413 | } |
| … |
… |
|
| 439 | 452 | })( jQuery ); |
| 440 | 453 | /*! |
| 441 | | * jQuery UI Mouse 1.8 |
| | 454 | * jQuery UI Mouse 1.8.2 |
| 442 | 455 | * |
| 443 | 456 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 590 | 603 | })(jQuery); |
| 591 | 604 | /* |
| 592 | | * jQuery UI Position 1.8 |
| | 605 | * jQuery UI Position 1.8.2 |
| 593 | 606 | * |
| 594 | 607 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 704 | 717 | } |
| 705 | 718 | |
| | 719 | // prevent fractions (see #5280) |
| | 720 | position.left = parseInt( position.left ); |
| | 721 | position.top = parseInt( position.top ); |
| | 722 | |
| 706 | 723 | $.each( [ "left", "top" ], function( i, dir ) { |
| 707 | 724 | if ( $.ui.position[ collision[i] ] ) { |
| … |
… |
|
| 819 | 836 | }( jQuery )); |
| 820 | 837 | /* |
| 821 | | * jQuery UI Draggable 1.8 |
| | 838 | * jQuery UI Draggable 1.8.2 |
| 822 | 839 | * |
| 823 | 840 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 1279 | 1296 | |
| 1280 | 1297 | $.extend($.ui.draggable, { |
| 1281 | | version: "1.8" |
| | 1298 | version: "1.8.2" |
| 1282 | 1299 | }); |
| 1283 | 1300 | |
| … |
… |
|
| 1616 | 1633 | })(jQuery); |
| 1617 | 1634 | /* |
| 1618 | | * jQuery UI Droppable 1.8 |
| | 1635 | * jQuery UI Droppable 1.8.2 |
| 1619 | 1636 | * |
| 1620 | 1637 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 1764 | 1781 | |
| 1765 | 1782 | $.extend($.ui.droppable, { |
| 1766 | | version: "1.8" |
| | 1783 | version: "1.8.2" |
| 1767 | 1784 | }); |
| 1768 | 1785 | |
| … |
… |
|
| 1901 | 1918 | })(jQuery); |
| 1902 | 1919 | /* |
| 1903 | | * jQuery UI Resizable 1.8 |
| | 1920 | * jQuery UI Resizable 1.8.2 |
| 1904 | 1921 | * |
| 1905 | 1922 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 2421 | 2438 | |
| 2422 | 2439 | $.extend($.ui.resizable, { |
| 2423 | | version: "1.8" |
| | 2440 | version: "1.8.2" |
| 2424 | 2441 | }); |
| 2425 | 2442 | |
| … |
… |
|
| 2699 | 2716 | |
| 2700 | 2717 | })(jQuery); |
| | 2718 | |
| 2701 | 2719 | /* |
| 2702 | | * jQuery UI Selectable 1.8 |
| | 2720 | * jQuery UI Selectable 1.8.2 |
| 2703 | 2721 | * |
| 2704 | 2722 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 2757 | 2775 | this._mouseInit(); |
| 2758 | 2776 | |
| 2759 | | this.helper = $(document.createElement('div')) |
| 2760 | | .css({border:'1px dotted black'}) |
| 2761 | | .addClass("ui-selectable-helper"); |
| | 2777 | this.helper = $("<div class='ui-selectable-helper'></div>"); |
| 2762 | 2778 | }, |
| 2763 | 2779 | |
| … |
… |
|
| 2822 | 2838 | var selectee = $.data(this, "selectable-item"); |
| 2823 | 2839 | if (selectee) { |
| 2824 | | selectee.$element.removeClass("ui-unselecting").addClass('ui-selecting'); |
| 2825 | | selectee.unselecting = false; |
| 2826 | | selectee.selecting = true; |
| 2827 | | selectee.selected = true; |
| 2828 | | // selectable SELECTING callback |
| 2829 | | self._trigger("selecting", event, { |
| 2830 | | selecting: selectee.element |
| 2831 | | }); |
| | 2840 | var doSelect = !event.metaKey || !selectee.$element.hasClass('ui-selected'); |
| | 2841 | selectee.$element |
| | 2842 | .removeClass(doSelect ? "ui-unselecting" : "ui-selected") |
| | 2843 | .addClass(doSelect ? "ui-selecting" : "ui-unselecting"); |
| | 2844 | selectee.unselecting = !doSelect; |
| | 2845 | selectee.selecting = doSelect; |
| | 2846 | selectee.selected = doSelect; |
| | 2847 | // selectable (UN)SELECTING callback |
| | 2848 | if (doSelect) { |
| | 2849 | self._trigger("selecting", event, { |
| | 2850 | selecting: selectee.element |
| | 2851 | }); |
| | 2852 | } else { |
| | 2853 | self._trigger("unselecting", event, { |
| | 2854 | unselecting: selectee.element |
| | 2855 | }); |
| | 2856 | } |
| 2832 | 2857 | return false; |
| 2833 | 2858 | } |
| … |
… |
|
| 2956 | 2981 | |
| 2957 | 2982 | $.extend($.ui.selectable, { |
| 2958 | | version: "1.8" |
| | 2983 | version: "1.8.2" |
| 2959 | 2984 | }); |
| 2960 | 2985 | |
| 2961 | 2986 | })(jQuery); |
| 2962 | 2987 | /* |
| 2963 | | * jQuery UI Sortable 1.8 |
| | 2988 | * jQuery UI Sortable 1.8.2 |
| 2964 | 2989 | * |
| 2965 | 2990 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 3035 | 3060 | }, |
| 3036 | 3061 | |
| | 3062 | _setOption: function(key, value){ |
| | 3063 | if ( key === "disabled" ) { |
| | 3064 | this.options[ key ] = value; |
| | 3065 | |
| | 3066 | this.widget() |
| | 3067 | [ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" ); |
| | 3068 | } else { |
| | 3069 | // Don't call widget base _setOption for disable as it adds ui-state-disabled class |
| | 3070 | $.Widget.prototype._setOption.apply(this, arguments); |
| | 3071 | } |
| | 3072 | }, |
| | 3073 | |
| 3037 | 3074 | _mouseCapture: function(event, overrideHandle) { |
| 3038 | 3075 | |
| … |
… |
|
| 4011 | 4048 | |
| 4012 | 4049 | $.extend($.ui.sortable, { |
| 4013 | | version: "1.8" |
| | 4050 | version: "1.8.2" |
| 4014 | 4051 | }); |
| 4015 | 4052 | |
| 4016 | 4053 | })(jQuery); |
| 4017 | 4054 | /* |
| 4018 | | * jQuery UI Dialog 1.8 |
| | 4055 | * jQuery UI Dialog 1.8.2 |
| 4019 | 4056 | * |
| 4020 | 4057 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 4639 | 4676 | // reset content sizing |
| 4640 | 4677 | // hide for non content measurement because height: 0 doesn't work in IE quirks mode (see #4350) |
| 4641 | | this.element.css('width', 'auto') |
| 4642 | | .hide(); |
| | 4678 | this.element.css({ |
| | 4679 | width: 'auto', |
| | 4680 | minHeight: 0, |
| | 4681 | height: 0 |
| | 4682 | }); |
| 4643 | 4683 | |
| 4644 | 4684 | // reset wrapper sizing |
| … |
… |
|
| 4667 | 4707 | |
| 4668 | 4708 | $.extend($.ui.dialog, { |
| 4669 | | version: "1.8", |
| | 4709 | version: "1.8.2", |
| 4670 | 4710 | |
| 4671 | 4711 | uuid: 0, |
| … |
… |
|
| 4836 | 4876 | }(jQuery)); |
| 4837 | 4877 | /* |
| 4838 | | * jQuery UI Tabs 1.8 |
| | 4878 | * jQuery UI Tabs 1.8.2 |
| 4839 | 4879 | * |
| 4840 | 4880 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 4852 | 4892 | var tabId = 0, |
| 4853 | 4893 | listId = 0; |
| | 4894 | |
| | 4895 | function getNextTabId() { |
| | 4896 | return ++tabId; |
| | 4897 | } |
| | 4898 | |
| | 4899 | function getNextListId() { |
| | 4900 | return ++listId; |
| | 4901 | } |
| 4854 | 4902 | |
| 4855 | 4903 | $.widget("ui.tabs", { |
| … |
… |
|
| 4893 | 4941 | _tabId: function(a) { |
| 4894 | 4942 | return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '') || |
| 4895 | | this.options.idPrefix + (++tabId); |
| | 4943 | this.options.idPrefix + getNextTabId(); |
| 4896 | 4944 | }, |
| 4897 | 4945 | |
| … |
… |
|
| 4901 | 4949 | |
| 4902 | 4950 | _cookie: function() { |
| 4903 | | var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + (++listId)); |
| | 4951 | var cookie = this.cookie || (this.cookie = this.options.cookie.name || 'ui-tabs-' + getNextListId()); |
| 4904 | 4952 | return $.cookie.apply(null, [cookie].concat($.makeArray(arguments))); |
| 4905 | 4953 | }, |
| … |
… |
|
| 5497 | 5545 | |
| 5498 | 5546 | $.extend($.ui.tabs, { |
| 5499 | | version: '1.8' |
| | 5547 | version: '1.8.2' |
| 5500 | 5548 | }); |
| 5501 | 5549 | |
| … |
… |
|
| 5557 | 5605 | })(jQuery); |
| 5558 | 5606 | /* |
| 5559 | | * jQuery UI Progressbar 1.8 |
| | 5607 | * jQuery UI Progressbar 1.8.2 |
| 5560 | 5608 | * |
| 5561 | 5609 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 5659 | 5707 | |
| 5660 | 5708 | $.extend( $.ui.progressbar, { |
| 5661 | | version: "1.8" |
| | 5709 | version: "1.8.2" |
| 5662 | 5710 | }); |
| 5663 | 5711 | |
| 5664 | 5712 | })( jQuery ); |
| 5665 | 5713 | /* |
| 5666 | | * jQuery UI Effects 1.8 |
| | 5714 | * jQuery UI Effects 1.8.2 |
| 5667 | 5715 | * |
| 5668 | 5716 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
| … |
… |
|
| 5966 | 6014 | |
| 5967 | 6015 | $.extend($.effects, { |
| 5968 | | version: "1.8", |
| | 6016 | version: "1.8.2", |
| 5969 | 6017 | |
| 5970 | 6018 | // Saves a set of properties in a data storage |
| … |
… |
|
| 6378 | 6426 | })(jQuery); |
| 6379 | 6427 | /* |
| 6380 | | * jQuery UI Effects Transfer 1.8 |
| | 6428 | * jQuery UI Effects Transfer 1.8.2 |
| 6381 | 6429 | * |
| 6382 | 6430 | * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) |
-
|
r3428a24
|
r6e5aa8d
|
|
| 1 | | jQuery UI Authors (http://ui.jquery.com/about) |
| | 1 | jQuery UI Authors (http://jqueryui.com/about) |
| 2 | 2 | |
| 3 | 3 | This software consists of voluntary contributions made by many |
| 4 | 4 | individuals. For exact contribution history, see the revision history |
| 5 | | and logs, available at http://jquery-ui.googlecode.com/svn/ |
| | 5 | and logs, available at http://github.com/jquery/jquery-ui |
| 6 | 6 | |
| 7 | 7 | Brandon Aaron |
-
|
r59cf1af
|
r6e5aa8d
|
|
| 7 | 7 | {# include local (site-specific) css #} |
| 8 | 8 | <script type="text/javascript" src="{{ ductus_media_prefix }}common/js/jquery-1.4.2.min.js"></script> |
| 9 | | <script type="text/javascript" src="{{ ductus_media_prefix }}common/js/jquery-ui-1.8.custom.min.js"></script> |
| | 9 | <script type="text/javascript" src="{{ ductus_media_prefix }}common/js/jquery-ui-1.8.2.custom.min.js"></script> |
| 10 | 10 | <script type="text/javascript" src="{{ ductus_media_prefix }}common/js/jquery.metadata.min.js"></script> |
| 11 | 11 | <script type="text/javascript" src="{{ ductus_media_prefix }}common/js/json2.min.js"></script> |