diff options
author | rvelices <rv-github@modusoptimus.com> | 2014-06-24 20:16:59 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2014-06-24 20:16:59 +0000 |
commit | 09228a746f3a67ea80ab6cc6013f535da8332a64 (patch) | |
tree | 15107374e3de6b8da403af5b75f828c7ea77315b /themes/default/js/ui/jquery.ui.slider.js | |
parent | 03a3d1830cf67eb468bf4e48a879d2994055a492 (diff) |
upgrade jquery ui from 1.10.1 to 1.10.4
git-svn-id: http://piwigo.org/svn/trunk@28780 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | themes/default/js/ui/jquery.ui.slider.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/themes/default/js/ui/jquery.ui.slider.js b/themes/default/js/ui/jquery.ui.slider.js index abb795d55..039c0ef17 100644 --- a/themes/default/js/ui/jquery.ui.slider.js +++ b/themes/default/js/ui/jquery.ui.slider.js @@ -1,8 +1,8 @@ /*! - * jQuery UI Slider 1.10.1 + * jQuery UI Slider 1.10.4 * http://jqueryui.com * - * Copyright 2013 jQuery Foundation and other contributors + * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * @@ -20,7 +20,7 @@ var numPages = 5; $.widget( "ui.slider", $.ui.mouse, { - version: "1.10.1", + version: "1.10.4", widgetEventPrefix: "slide", options: { @@ -131,7 +131,10 @@ $.widget( "ui.slider", $.ui.mouse, { this.range.addClass( classes + ( ( options.range === "min" || options.range === "max" ) ? " ui-slider-range-" + options.range : "" ) ); } else { - this.range = $([]); + if ( this.range ) { + this.range.remove(); + } + this.range = null; } }, @@ -145,7 +148,9 @@ $.widget( "ui.slider", $.ui.mouse, { _destroy: function() { this.handles.remove(); - this.range.remove(); + if ( this.range ) { + this.range.remove(); + } this.element .removeClass( "ui-slider" + @@ -317,7 +322,7 @@ $.widget( "ui.slider", $.ui.mouse, { } ); otherVal = this.values( index ? 0 : 1 ); if ( allowed !== false ) { - this.values( index, newVal, true ); + this.values( index, newVal ); } } } else { @@ -589,7 +594,6 @@ $.widget( "ui.slider", $.ui.mouse, { _handleEvents: { keydown: function( event ) { - /*jshint maxcomplexity:25*/ var allowed, curVal, newVal, step, index = $( event.target ).data( "ui-slider-handle-index" ); |