Dotclear


Ignore:
Timestamp:
02/20/16 14:36:10 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Update jquery from 1.11.3 to 2.2.0, jquery-migrate from 1.2.1 to 1.3.0, jquery-ui-custom from 1.11.2 to 1.11.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/js/jquery/jquery-ui.custom.js

    • Property exe deleted
    r2950 r3178  
    1 /*! jQuery UI - v1.11.2 - 2015-02-01 
     1/*! jQuery UI - v1.11.4 - 2016-02-20 
    22* http://jqueryui.com 
    33* Includes: core.js, widget.js, mouse.js, draggable.js, sortable.js, accordion.js 
    4 * Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */ 
     4* Copyright jQuery Foundation and other contributors; Licensed MIT */ 
    55 
    66(function( factory ) { 
     
    1616}(function( $ ) { 
    1717/*! 
    18  * jQuery UI Core 1.11.2 
     18 * jQuery UI Core 1.11.4 
    1919 * http://jqueryui.com 
    2020 * 
    21  * Copyright 2014 jQuery Foundation and other contributors 
     21 * Copyright jQuery Foundation and other contributors 
    2222 * Released under the MIT license. 
    2323 * http://jquery.org/license 
     
    3131 
    3232$.extend( $.ui, { 
    33      version: "1.11.2", 
     33     version: "1.11.4", 
    3434 
    3535     keyCode: { 
     
    104104          return !!img && visible( img ); 
    105105     } 
    106      return ( /input|select|textarea|button|object/.test( nodeName ) ? 
     106     return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ? 
    107107          !element.disabled : 
    108108          "a" === nodeName ? 
     
    310310 
    311311/*! 
    312  * jQuery UI Widget 1.11.2 
     312 * jQuery UI Widget 1.11.4 
    313313 * http://jqueryui.com 
    314314 * 
    315  * Copyright 2014 jQuery Foundation and other contributors 
     315 * Copyright jQuery Foundation and other contributors 
    316316 * Released under the MIT license. 
    317317 * http://jquery.org/license 
     
    491491               returnValue = this; 
    492492 
    493           // allow multiple hashes to be passed on init 
    494           options = !isMethodCall && args.length ? 
    495                $.widget.extend.apply( null, [ options ].concat(args) ) : 
    496                options; 
    497  
    498493          if ( isMethodCall ) { 
    499494               this.each(function() { 
     
    520515               }); 
    521516          } else { 
     517 
     518               // Allow multiple hashes to be passed on init 
     519               if ( args.length ) { 
     520                    options = $.widget.extend.apply( null, [ options ].concat(args) ); 
     521               } 
     522 
    522523               this.each(function() { 
    523524                    var instance = $.data( this, fullName ); 
     
    857858 
    858859/*! 
    859  * jQuery UI Mouse 1.11.2 
     860 * jQuery UI Mouse 1.11.4 
    860861 * http://jqueryui.com 
    861862 * 
    862  * Copyright 2014 jQuery Foundation and other contributors 
     863 * Copyright jQuery Foundation and other contributors 
    863864 * Released under the MIT license. 
    864865 * http://jquery.org/license 
     
    874875 
    875876var mouse = $.widget("ui.mouse", { 
    876      version: "1.11.2", 
     877     version: "1.11.4", 
    877878     options: { 
    878879          cancel: "input,textarea,button,select,option", 
     
    10431044 
    10441045/*! 
    1045  * jQuery UI Draggable 1.11.2 
     1046 * jQuery UI Draggable 1.11.4 
    10461047 * http://jqueryui.com 
    10471048 * 
    1048  * Copyright 2014 jQuery Foundation and other contributors 
     1049 * Copyright jQuery Foundation and other contributors 
    10491050 * Released under the MIT license. 
    10501051 * http://jquery.org/license 
     
    10551056 
    10561057$.widget("ui.draggable", $.ui.mouse, { 
    1057      version: "1.11.2", 
     1058     version: "1.11.4", 
    10581059     widgetEventPrefix: "drag", 
    10591060     options: { 
     
    18291830                         sortable.isOver = 1; 
    18301831 
     1832                         // Store draggable's parent in case we need to reappend to it later. 
     1833                         draggable._parent = ui.helper.parent(); 
     1834 
    18311835                         sortable.currentItem = ui.helper 
    18321836                              .appendTo( sortable.element ) 
     
    19051909                         } 
    19061910 
    1907                          // Recalculate the draggable's offset considering the sortable 
    1908                          // may have modified them in unexpected ways (#8809) 
     1911                         // Restore and recalculate the draggable's offset considering the sortable 
     1912                         // may have modified them in unexpected ways. (#8809, #10669) 
     1913                         ui.helper.appendTo( draggable._parent ); 
    19091914                         draggable._refreshOffsets( event ); 
    19101915                         ui.position = draggable._generatePosition( event, true ); 
     
    21562161 
    21572162/*! 
    2158  * jQuery UI Sortable 1.11.2 
     2163 * jQuery UI Sortable 1.11.4 
    21592164 * http://jqueryui.com 
    21602165 * 
    2161  * Copyright 2014 jQuery Foundation and other contributors 
     2166 * Copyright jQuery Foundation and other contributors 
    21622167 * Released under the MIT license. 
    21632168 * http://jquery.org/license 
     
    21682173 
    21692174var sortable = $.widget("ui.sortable", $.ui.mouse, { 
    2170      version: "1.11.2", 
     2175     version: "1.11.4", 
    21712176     widgetEventPrefix: "sort", 
    21722177     ready: false, 
     
    22192224 
    22202225     _create: function() { 
    2221  
    2222           var o = this.options; 
    22232226          this.containerCache = {}; 
    22242227          this.element.addClass("ui-sortable"); 
     
    22262229          //Get the items 
    22272230          this.refresh(); 
    2228  
    2229           //Let's determine if the items are being displayed horizontally 
    2230           this.floating = this.items.length ? o.axis === "x" || this._isFloating(this.items[0].item) : false; 
    22312231 
    22322232          //Let's determine the parent's offset 
     
    24182418 
    24192419          //Prepare scrolling 
    2420           if(this.scrollParent[0] !== document && this.scrollParent[0].tagName !== "HTML") { 
     2420          if(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !== "HTML") { 
    24212421               this.overflowOffset = this.scrollParent.offset(); 
    24222422          } 
     
    24702470          //Do scrolling 
    24712471          if(this.options.scroll) { 
    2472                if(this.scrollParent[0] !== document && this.scrollParent[0].tagName !== "HTML") { 
     2472               if(this.scrollParent[0] !== this.document[0] && this.scrollParent[0].tagName !== "HTML") { 
    24732473 
    24742474                    if((this.overflowOffset.top + this.scrollParent[0].offsetHeight) - event.pageY < o.scrollSensitivity) { 
     
    24862486               } else { 
    24872487 
    2488                     if(event.pageY - $(document).scrollTop() < o.scrollSensitivity) { 
    2489                          scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed); 
    2490                     } else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity) { 
    2491                          scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed); 
    2492                     } 
    2493  
    2494                     if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity) { 
    2495                          scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed); 
    2496                     } else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity) { 
    2497                          scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed); 
     2488                    if(event.pageY - this.document.scrollTop() < o.scrollSensitivity) { 
     2489                         scrolled = this.document.scrollTop(this.document.scrollTop() - o.scrollSpeed); 
     2490                    } else if(this.window.height() - (event.pageY - this.document.scrollTop()) < o.scrollSensitivity) { 
     2491                         scrolled = this.document.scrollTop(this.document.scrollTop() + o.scrollSpeed); 
     2492                    } 
     2493 
     2494                    if(event.pageX - this.document.scrollLeft() < o.scrollSensitivity) { 
     2495                         scrolled = this.document.scrollLeft(this.document.scrollLeft() - o.scrollSpeed); 
     2496                    } else if(this.window.width() - (event.pageX - this.document.scrollLeft()) < o.scrollSensitivity) { 
     2497                         scrolled = this.document.scrollLeft(this.document.scrollLeft() + o.scrollSpeed); 
    24982498                    } 
    24992499 
     
    25942594 
    25952595               if ( !axis || axis === "x" ) { 
    2596                     animation.left = cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === document.body ? 0 : this.offsetParent[0].scrollLeft); 
     2596                    animation.left = cur.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollLeft); 
    25972597               } 
    25982598               if ( !axis || axis === "y" ) { 
    2599                     animation.top = cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === document.body ? 0 : this.offsetParent[0].scrollTop); 
     2599                    animation.top = cur.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === this.document[0].body ? 0 : this.offsetParent[0].scrollTop); 
    26002600               } 
    26012601               this.reverting = true; 
     
    27902790          if(connectWith && connected) { 
    27912791               for (i = connectWith.length - 1; i >= 0; i--){ 
    2792                     cur = $(connectWith[i]); 
     2792                    cur = $(connectWith[i], this.document[0]); 
    27932793                    for ( j = cur.length - 1; j >= 0; j--){ 
    27942794                         inst = $.data(cur[j], this.widgetFullName); 
     
    28402840          if(connectWith && this.ready) { //Shouldn't be run the first time through due to massive slow-down 
    28412841               for (i = connectWith.length - 1; i >= 0; i--){ 
    2842                     cur = $(connectWith[i]); 
     2842                    cur = $(connectWith[i], this.document[0]); 
    28432843                    for (j = cur.length - 1; j >= 0; j--){ 
    28442844                         inst = $.data(cur[j], this.widgetFullName); 
     
    28722872 
    28732873     refreshPositions: function(fast) { 
     2874 
     2875          // Determine whether items are being displayed horizontally 
     2876          this.floating = this.items.length ? 
     2877               this.options.axis === "x" || this._isFloating( this.items[ 0 ].item ) : 
     2878               false; 
    28742879 
    28752880          //This has to be redone because due to the item being moved out/into the offsetParent, the offsetParent's position will change 
     
    29302935                                   .removeClass("ui-sortable-helper"); 
    29312936 
    2932                          if ( nodeName === "tr" ) { 
    2933                               that.currentItem.children().each(function() { 
    2934                                    $( "<td>&#160;</td>", that.document[0] ) 
    2935                                         .attr( "colspan", $( this ).attr( "colspan" ) || 1 ) 
    2936                                         .appendTo( element ); 
    2937                               }); 
     2937                         if ( nodeName === "tbody" ) { 
     2938                              that._createTrPlaceholder( 
     2939                                   that.currentItem.find( "tr" ).eq( 0 ), 
     2940                                   $( "<tr>", that.document[ 0 ] ).appendTo( element ) 
     2941                              ); 
     2942                         } else if ( nodeName === "tr" ) { 
     2943                              that._createTrPlaceholder( that.currentItem, element ); 
    29382944                         } else if ( nodeName === "img" ) { 
    29392945                              element.attr( "src", that.currentItem.attr( "src" ) ); 
     
    29702976          o.placeholder.update(that, that.placeholder); 
    29712977 
     2978     }, 
     2979 
     2980     _createTrPlaceholder: function( sourceTr, targetTr ) { 
     2981          var that = this; 
     2982 
     2983          sourceTr.children().each(function() { 
     2984               $( "<td>&#160;</td>", that.document[ 0 ] ) 
     2985                    .attr( "colspan", $( this ).attr( "colspan" ) || 1 ) 
     2986                    .appendTo( targetTr ); 
     2987          }); 
    29722988     }, 
    29732989 
     
    31323148          // 2. The actual offset parent is a child of the scroll parent, and the scroll parent isn't the document, which means that 
    31333149          //    the scroll is included in the initial calculation of the offset of the parent, and never recalculated upon drag 
    3134           if(this.cssPosition === "absolute" && this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) { 
     3150          if(this.cssPosition === "absolute" && this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) { 
    31353151               po.left += this.scrollParent.scrollLeft(); 
    31363152               po.top += this.scrollParent.scrollTop(); 
     
    31393155          // This needs to be actually done for all browsers, since pageX/pageY includes this information 
    31403156          // with an ugly IE fix 
    3141           if( this.offsetParent[0] === document.body || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === "html" && $.ui.ie)) { 
     3157          if( this.offsetParent[0] === this.document[0].body || (this.offsetParent[0].tagName && this.offsetParent[0].tagName.toLowerCase() === "html" && $.ui.ie)) { 
    31423158               po = { top: 0, left: 0 }; 
    31433159          } 
     
    31893205                    0 - this.offset.relative.left - this.offset.parent.left, 
    31903206                    0 - this.offset.relative.top - this.offset.parent.top, 
    3191                     $(o.containment === "document" ? document : window).width() - this.helperProportions.width - this.margins.left, 
    3192                     ($(o.containment === "document" ? document : window).height() || document.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top 
     3207                    o.containment === "document" ? this.document.width() : this.window.width() - this.helperProportions.width - this.margins.left, 
     3208                    (o.containment === "document" ? this.document.width() : this.window.height() || this.document[0].body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top 
    31933209               ]; 
    31943210          } 
     
    32153231          } 
    32163232          var mod = d === "absolute" ? 1 : -1, 
    3217                scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, 
     3233               scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, 
    32183234               scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); 
    32193235 
     
    32413257               pageX = event.pageX, 
    32423258               pageY = event.pageY, 
    3243                scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== document && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); 
     3259               scroll = this.cssPosition === "absolute" && !(this.scrollParent[0] !== this.document[0] && $.contains(this.scrollParent[0], this.offsetParent[0])) ? this.offsetParent : this.scrollParent, scrollIsRootNode = (/(html|body)/i).test(scroll[0].tagName); 
    32443260 
    32453261          // This is another very weird special case that only happens for relative elements: 
     
    32473263          // 2. and the scroll parent is the document or similar to the offset parent 
    32483264          // we have to refresh the relative offset during the scroll so there are no jumps 
    3249           if(this.cssPosition === "relative" && !(this.scrollParent[0] !== document && this.scrollParent[0] !== this.offsetParent[0])) { 
     3265          if(this.cssPosition === "relative" && !(this.scrollParent[0] !== this.document[0] && this.scrollParent[0] !== this.offsetParent[0])) { 
    32503266               this.offset.relative = this._getRelativeOffset(); 
    32513267          } 
     
    34453461 
    34463462/*! 
    3447  * jQuery UI Accordion 1.11.2 
     3463 * jQuery UI Accordion 1.11.4 
    34483464 * http://jqueryui.com 
    34493465 * 
    3450  * Copyright 2014 jQuery Foundation and other contributors 
     3466 * Copyright jQuery Foundation and other contributors 
    34513467 * Released under the MIT license. 
    34523468 * http://jquery.org/license 
     
    34573473 
    34583474var accordion = $.widget( "ui.accordion", { 
    3459      version: "1.11.2", 
     3475     version: "1.11.4", 
    34603476     options: { 
    34613477          active: 0, 
     
    39153931               "aria-hidden": "true" 
    39163932          }); 
    3917           toHide.prev().attr( "aria-selected", "false" ); 
     3933          toHide.prev().attr({ 
     3934               "aria-selected": "false", 
     3935               "aria-expanded": "false" 
     3936          }); 
    39183937          // if we're switching panels, remove the old header from the tab order 
    39193938          // if we're opening from collapsed state, remove the previous header from the tab order 
     
    39263945          } else if ( toShow.length ) { 
    39273946               this.headers.filter(function() { 
    3928                     return $( this ).attr( "tabIndex" ) === 0; 
     3947                    return parseInt( $( this ).attr( "tabIndex" ), 10 ) === 0; 
    39293948               }) 
    39303949               .attr( "tabIndex", -1 ); 
     
    39363955                    .attr({ 
    39373956                         "aria-selected": "true", 
    3938                          tabIndex: 0, 
    3939                          "aria-expanded": "true" 
     3957                         "aria-expanded": "true", 
     3958                         tabIndex: 0 
    39403959                    }); 
    39413960     }, 
     
    39453964               that = this, 
    39463965               adjust = 0, 
     3966               boxSizing = toShow.css( "box-sizing" ), 
    39473967               down = toShow.length && 
    39483968                    ( !toHide.length || ( toShow.index() < toHide.index() ) ), 
     
    39874007                         fx.now = Math.round( now ); 
    39884008                         if ( fx.prop !== "height" ) { 
    3989                               adjust += fx.now; 
     4009                              if ( boxSizing === "content-box" ) { 
     4010                                   adjust += fx.now; 
     4011                              } 
    39904012                         } else if ( that.options.heightStyle !== "content" ) { 
    39914013                              fx.now = Math.round( total - toHide.outerHeight() - adjust ); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map