From d2e83cb8b2a116950374e7adb795e255c5d1c4ea Mon Sep 17 00:00:00 2001 From: JackDandy Date: Sun, 29 Jan 2017 02:42:30 +0000 Subject: [PATCH] Update jQuery UI Touch Punch 0.2.2 to 0.2.3. --- CHANGES.md | 1 + gui/slick/interfaces/default/inc_top.tmpl | 2 +- gui/slick/js/lib/jquery.ui.touch-punch-0.2.2.min.js | 11 ----------- gui/slick/js/lib/jquery.ui.touch-punch.min.js | 11 +++++++++++ 4 files changed, 13 insertions(+), 12 deletions(-) delete mode 100644 gui/slick/js/lib/jquery.ui.touch-punch-0.2.2.min.js create mode 100644 gui/slick/js/lib/jquery.ui.touch-punch.min.js diff --git a/CHANGES.md b/CHANGES.md index 99a79e5e..437c44c7 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -34,6 +34,7 @@ * Update jQuery JSON 2.2 (c908771) to 2.6 (2339804) * Update jquery.form plugin 3.35.0 to 3.51.0 (6bf24a5) * Update jquery-tokeninput 1.60 to 1.62 (9c36e19) +* Update jQuery UI Touch Punch 0.2.2 to 0.2.3 * Update qTip 2.2.1 to 2.2.2 diff --git a/gui/slick/interfaces/default/inc_top.tmpl b/gui/slick/interfaces/default/inc_top.tmpl index 4c8c2f73..b4b89c76 100644 --- a/gui/slick/interfaces/default/inc_top.tmpl +++ b/gui/slick/interfaces/default/inc_top.tmpl @@ -62,7 +62,7 @@ - + diff --git a/gui/slick/js/lib/jquery.ui.touch-punch-0.2.2.min.js b/gui/slick/js/lib/jquery.ui.touch-punch-0.2.2.min.js deleted file mode 100644 index 33d6f97e..00000000 --- a/gui/slick/js/lib/jquery.ui.touch-punch-0.2.2.min.js +++ /dev/null @@ -1,11 +0,0 @@ -/* - * jQuery UI Touch Punch 0.2.2 - * - * Copyright 2011, Dave Furfero - * Dual licensed under the MIT or GPL Version 2 licenses. - * - * Depends: - * jquery.ui.widget.js - * jquery.ui.mouse.js - */ -(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return;}var c=b.ui.mouse.prototype,e=c._mouseInit,a;function d(g,h){if(g.originalEvent.touches.length>1){return;}g.preventDefault();var i=g.originalEvent.changedTouches[0],f=document.createEvent("MouseEvents");f.initMouseEvent(h,true,true,window,1,i.screenX,i.screenY,i.clientX,i.clientY,false,false,false,false,0,null);g.target.dispatchEvent(f);}c._touchStart=function(g){var f=this;if(a||!f._mouseCapture(g.originalEvent.changedTouches[0])){return;}a=true;f._touchMoved=false;d(g,"mouseover");d(g,"mousemove");d(g,"mousedown");};c._touchMove=function(f){if(!a){return;}this._touchMoved=true;d(f,"mousemove");};c._touchEnd=function(f){if(!a){return;}d(f,"mouseup");d(f,"mouseout");if(!this._touchMoved){d(f,"click");}a=false;};c._mouseInit=function(){var f=this;f.element.bind("touchstart",b.proxy(f,"_touchStart")).bind("touchmove",b.proxy(f,"_touchMove")).bind("touchend",b.proxy(f,"_touchEnd"));e.call(f);};})(jQuery); \ No newline at end of file diff --git a/gui/slick/js/lib/jquery.ui.touch-punch.min.js b/gui/slick/js/lib/jquery.ui.touch-punch.min.js new file mode 100644 index 00000000..31272ce6 --- /dev/null +++ b/gui/slick/js/lib/jquery.ui.touch-punch.min.js @@ -0,0 +1,11 @@ +/*! + * jQuery UI Touch Punch 0.2.3 + * + * Copyright 2011–2014, Dave Furfero + * Dual licensed under the MIT or GPL Version 2 licenses. + * + * Depends: + * jquery.ui.widget.js + * jquery.ui.mouse.js + */ +!function(a){function f(a,b){if(!(a.originalEvent.touches.length>1)){a.preventDefault();var c=a.originalEvent.changedTouches[0],d=document.createEvent("MouseEvents");d.initMouseEvent(b,!0,!0,window,1,c.screenX,c.screenY,c.clientX,c.clientY,!1,!1,!1,!1,0,null),a.target.dispatchEvent(d)}}if(a.support.touch="ontouchend"in document,a.support.touch){var e,b=a.ui.mouse.prototype,c=b._mouseInit,d=b._mouseDestroy;b._touchStart=function(a){var b=this;!e&&b._mouseCapture(a.originalEvent.changedTouches[0])&&(e=!0,b._touchMoved=!1,f(a,"mouseover"),f(a,"mousemove"),f(a,"mousedown"))},b._touchMove=function(a){e&&(this._touchMoved=!0,f(a,"mousemove"))},b._touchEnd=function(a){e&&(f(a,"mouseup"),f(a,"mouseout"),this._touchMoved||f(a,"click"),e=!1)},b._mouseInit=function(){var b=this;b.element.bind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),c.call(b)},b._mouseDestroy=function(){var b=this;b.element.unbind({touchstart:a.proxy(b,"_touchStart"),touchmove:a.proxy(b,"_touchMove"),touchend:a.proxy(b,"_touchEnd")}),d.call(b)}}}(jQuery); \ No newline at end of file