summaryrefslogtreecommitdiffstats
path: root/js/yui3/clickable-rail
diff options
context:
space:
mode:
Diffstat (limited to 'js/yui3/clickable-rail')
-rw-r--r--js/yui3/clickable-rail/assets/slider-base-core.css37
-rw-r--r--js/yui3/clickable-rail/assets/slider-core.css37
-rw-r--r--js/yui3/clickable-rail/clickable-rail-min.js7
3 files changed, 4 insertions, 77 deletions
diff --git a/js/yui3/clickable-rail/assets/slider-base-core.css b/js/yui3/clickable-rail/assets/slider-base-core.css
deleted file mode 100644
index 905d4a34d..000000000
--- a/js/yui3/clickable-rail/assets/slider-base-core.css
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
-YUI 3.7.3 (build 5687)
-Copyright 2012 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-.yui3-slider,
-.yui3-slider-rail {
- /* xbrowser inline-block styles */
- display: -moz-inline-stack; /* FF2 */
- display: inline-block;
- *display: inline; /* IE 7- (with zoom) */
- zoom: 1;
- vertical-align: middle;
-}
-
-.yui3-slider-content {
- position: relative;
- display: block;
-}
-.yui3-slider-rail {
- position: relative;
-}
-
-.yui3-slider-rail-cap-top,
-.yui3-slider-rail-cap-left,
-.yui3-slider-rail-cap-bottom,
-.yui3-slider-rail-cap-right,
-.yui3-slider-thumb,
-.yui3-slider-thumb-image,
-.yui3-slider-thumb-shadow {
- position: absolute;
-}
-
-.yui3-slider-thumb {
- overflow: hidden;
-}
diff --git a/js/yui3/clickable-rail/assets/slider-core.css b/js/yui3/clickable-rail/assets/slider-core.css
deleted file mode 100644
index 905d4a34d..000000000
--- a/js/yui3/clickable-rail/assets/slider-core.css
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
-YUI 3.7.3 (build 5687)
-Copyright 2012 Yahoo! Inc. All rights reserved.
-Licensed under the BSD License.
-http://yuilibrary.com/license/
-*/
-.yui3-slider,
-.yui3-slider-rail {
- /* xbrowser inline-block styles */
- display: -moz-inline-stack; /* FF2 */
- display: inline-block;
- *display: inline; /* IE 7- (with zoom) */
- zoom: 1;
- vertical-align: middle;
-}
-
-.yui3-slider-content {
- position: relative;
- display: block;
-}
-.yui3-slider-rail {
- position: relative;
-}
-
-.yui3-slider-rail-cap-top,
-.yui3-slider-rail-cap-left,
-.yui3-slider-rail-cap-bottom,
-.yui3-slider-rail-cap-right,
-.yui3-slider-thumb,
-.yui3-slider-thumb-image,
-.yui3-slider-thumb-shadow {
- position: absolute;
-}
-
-.yui3-slider-thumb {
- overflow: hidden;
-}
diff --git a/js/yui3/clickable-rail/clickable-rail-min.js b/js/yui3/clickable-rail/clickable-rail-min.js
index 28240d7c1..f16d116bc 100644
--- a/js/yui3/clickable-rail/clickable-rail-min.js
+++ b/js/yui3/clickable-rail/clickable-rail-min.js
@@ -1,7 +1,8 @@
/*
-YUI 3.7.3 (build 5687)
-Copyright 2012 Yahoo! Inc. All rights reserved.
+YUI 3.17.2 (build 9c3c78e)
+Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
-YUI.add("clickable-rail",function(e,t){function n(){this._initClickableRail()}e.ClickableRail=e.mix(n,{prototype:{_initClickableRail:function(){this._evtGuid=this._evtGuid||e.guid()+"|",this.publish("railMouseDown",{defaultFn:this._defRailMouseDownFn}),this.after("render",this._bindClickableRail),this.on("destroy",this._unbindClickableRail)},_bindClickableRail:function(){this._dd.addHandle(this.rail),this.rail.on(this._evtGuid+e.DD.Drag.START_EVENT,e.bind(this._onRailMouseDown,this))},_unbindClickableRail:function(){if(this.get("rendered")){var e=this.get("contentBox"),t=e.one("."+this.getClassName("rail"));t.detach(this.evtGuid+"*")}},_onRailMouseDown:function(e){this.get("clickableRail")&&!this.get("disabled")&&(this.fire("railMouseDown",{ev:e}),this.thumb.focus())},_defRailMouseDownFn:function(e){e=e.ev;var t=this._resolveThumb(e),n=this._key.xyIndex,r=parseFloat(this.get("length"),10),i,s,o;t&&(i=t.get("dragNode"),s=parseFloat(i.getStyle(this._key.dim),10),o=this._getThumbDestination(e,i),o=o[n]-this.rail.getXY()[n],o=Math.min(Math.max(o,0),r-s),this._uiMoveThumb(o,{source:"rail"}),e.target=this.thumb.one("img")||this.thumb,t._handleMouseDownEvent(e))},_resolveThumb:function(e){return this._dd},_getThumbDestination:function(e,t){var n=t.get("offsetWidth"),r=t.get("offsetHeight");return[e.pageX-Math.round(n/2),e.pageY-Math.round(r/2)]}},ATTRS:{clickableRail:{value:!0,validator:e.Lang.isBoolean}}},!0)},"3.7.3",{requires:["slider-base"]});
+
+YUI.add("clickable-rail",function(e,t){function n(){this._initClickableRail()}e.ClickableRail=e.mix(n,{prototype:{_initClickableRail:function(){this._evtGuid=this._evtGuid||e.guid()+"|",this.publish("railMouseDown",{defaultFn:this._defRailMouseDownFn}),this.after("render",this._bindClickableRail),this.on("destroy",this._unbindClickableRail)},_bindClickableRail:function(){this._dd.addHandle(this.rail),this.rail.on(this._evtGuid+e.DD.Drag.START_EVENT,e.bind(this._onRailMouseDown,this))},_unbindClickableRail:function(){if(this.get("rendered")){var e=this.get("contentBox"),t=e.one("."+this.getClassName("rail"));t.detach(this.evtGuid+"*")}},_onRailMouseDown:function(e){this.get("clickableRail")&&!this.get("disabled")&&(this.fire("railMouseDown",{ev:e}),this.thumb.focus())},_defRailMouseDownFn:function(e){e=e.ev;var t=this._resolveThumb(e),n=this._key.xyIndex,r=parseFloat(this.get("length"),10),i,s,o;t&&(i=t.get("dragNode"),s=parseFloat(i.getStyle(this._key.dim),10),o=this._getThumbDestination(e,i),o=o[n]-this.rail.getXY()[n],o=Math.min(Math.max(o,0),r-s),this._uiMoveThumb(o,{source:"rail"}),e.target=this.thumb.one("img")||this.thumb,t._handleMouseDownEvent(e))},_resolveThumb:function(e){return this._dd},_getThumbDestination:function(e,t){var n=t.get("offsetWidth"),r=t.get("offsetHeight");return[e.pageX-Math.round(n/2),e.pageY-Math.round(r/2)]}},ATTRS:{clickableRail:{value:!0,validator:e.Lang.isBoolean}}},!0)},"3.17.2",{requires:["slider-base"]});