diff --git a/Sortable.js b/Sortable.js index e98909b6c..77ffd6fc1 100644 --- a/Sortable.js +++ b/Sortable.js @@ -1243,6 +1243,6 @@ // Export - Sortable.version = '1.3.0-rc2'; + Sortable.version = '1.3.0'; return Sortable; }); diff --git a/Sortable.min.js b/Sortable.min.js index 45b1cb8eb..bef7fa3a1 100644 --- a/Sortable.min.js +++ b/Sortable.min.js @@ -1,2 +1,2 @@ -/*! Sortable 1.3.0-rc2 - MIT | git://github.com/rubaxa/Sortable.git */ -!function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function a(a,b){this.el=a,this.options=b=r({},b),a[L]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var d in c)!(d in b)&&(b[d]=c[d]);V(b);for(var f in this)"_"===f.charAt(0)&&(this[f]=this[f].bind(this));this.nativeDraggable=b.forceFallback?!1:P,e(a,"mousedown",this._onTapStart),e(a,"touchstart",this._onTapStart),this.nativeDraggable&&(e(a,"dragover",this),e(a,"dragenter",this)),T.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function b(a){v&&v.state!==a&&(h(v,"display",a?"none":""),!a&&v.state&&w.insertBefore(v,s),v.state=a)}function c(a,b,c){if(a){c=c||N,b=b.split(".");var d=b.shift().toUpperCase(),e=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");do if(">*"===d&&a.parentNode===c||(""===d||a.nodeName.toUpperCase()==d)&&(!b.length||((" "+a.className+" ").match(e)||[]).length==b.length))return a;while(a!==c&&(a=a.parentNode))}return null}function d(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function e(a,b,c){a.addEventListener(b,c,!1)}function f(a,b,c){a.removeEventListener(b,c,!1)}function g(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(K," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(K," ")}}function h(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return N.defaultView&&N.defaultView.getComputedStyle?c=N.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function i(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;f>e;e++)c(d[e],e);return d}return[]}function j(a,b,c,d,e,f,g){var h=N.createEvent("Event"),i=(a||b[L]).options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=v,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}function k(a,b,c,d,e,f){var g,h,i=a[L],j=i.options.onMove;return g=N.createEvent("Event"),g.initEvent("move",!0,!0),g.to=b,g.from=a,g.dragged=c,g.draggedRect=d,g.related=e||b,g.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(g),j&&(h=j.call(i,g)),h}function l(a){a.draggable=!1}function m(){R=!1}function n(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function o(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function p(a){var b=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"!==a.nodeName.toUpperCase()&&b++;return b}function q(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function r(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J={},K=/\s+/g,L="Sortable"+(new Date).getTime(),M=window,N=M.document,O=M.parseInt,P=!!("draggable"in N.createElement("div")),Q=function(a){return a=N.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),R=!1,S=Math.abs,T=([].slice,[]),U=q(function(a,b,c){if(c&&b.scroll){var d,e,f,g,h=b.scrollSensitivity,i=b.scrollSpeed,j=a.clientX,k=a.clientY,l=window.innerWidth,m=window.innerHeight;if(z!==c&&(y=b.scroll,z=c,y===!0)){y=c;do if(y.offsetWidth=l-j)-(h>=j),g=(h>=m-k)-(h>=k),(f||g)&&(d=M)),(J.vx!==f||J.vy!==g||J.el!==d)&&(J.el=d,J.vx=f,J.vy=g,clearInterval(J.pid),d&&(J.pid=setInterval(function(){d===M?M.scrollTo(M.pageXOffset+f*i,M.pageYOffset+g*i):(g&&(d.scrollTop+=g*i),f&&(d.scrollLeft+=f*i))},24)))}},30),V=function(a){var b=a.group;b&&"object"==typeof b||(b=a.group={name:b}),["pull","put"].forEach(function(a){a in b||(b[a]=!0)}),a.groups=" "+b.name+(b.put.join?" "+b.put.join(" "):"")+" "};return a.prototype={constructor:a,_onTapStart:function(a){var b=this,d=this.el,e=this.options,f=a.type,g=a.touches&&a.touches[0],h=(g||a).target,i=h,k=e.filter;if(!("mousedown"===f&&0!==a.button||e.disabled)&&(h=c(h,e.draggable,d))){if(D=p(h),"function"==typeof k){if(k.call(this,a,h,this))return j(b,i,"filter",h,d,D),void a.preventDefault()}else if(k&&(k=k.split(",").some(function(a){return a=c(i,a.trim(),d),a?(j(b,a,"filter",h,d,D),!0):void 0})))return void a.preventDefault();(!e.handle||c(i,e.handle,d))&&this._prepareDragStart(a,g,h)}},_prepareDragStart:function(a,b,c){var d,f=this,h=f.el,j=f.options,k=h.ownerDocument;c&&!s&&c.parentNode===h&&(G=a,w=h,s=c,t=s.parentNode,x=s.nextSibling,F=j.group,d=function(){f._disableDelayedDrag(),s.draggable=!0,g(s,f.options.chosenClass,!0),f._triggerDragStart(b)},j.ignore.split(",").forEach(function(a){i(s,a.trim(),l)}),e(k,"mouseup",f._onDrop),e(k,"touchend",f._onDrop),e(k,"touchcancel",f._onDrop),j.delay?(e(k,"mouseup",f._disableDelayedDrag),e(k,"touchend",f._disableDelayedDrag),e(k,"touchcancel",f._disableDelayedDrag),e(k,"mousemove",f._disableDelayedDrag),e(k,"touchmove",f._disableDelayedDrag),f._dragStartTimer=setTimeout(d,j.delay)):d())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),f(a,"mouseup",this._disableDelayedDrag),f(a,"touchend",this._disableDelayedDrag),f(a,"touchcancel",this._disableDelayedDrag),f(a,"mousemove",this._disableDelayedDrag),f(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(a){a?(G={target:s,clientX:a.clientX,clientY:a.clientY},this._onDragStart(G,"touch")):this.nativeDraggable?(e(s,"dragend",this),e(w,"dragstart",this._onDragStart)):this._onDragStart(G,!0);try{N.selection?N.selection.empty():window.getSelection().removeAllRanges()}catch(b){}},_dragStarted:function(){w&&s&&(g(s,this.options.ghostClass,!0),a.active=this,j(this,w,"start",s,w,D))},_emulateDragOver:function(){if(H){if(this._lastX===H.clientX&&this._lastY===H.clientY)return;this._lastX=H.clientX,this._lastY=H.clientY,Q||h(u,"display","none");var a=N.elementFromPoint(H.clientX,H.clientY),b=a,c=" "+this.options.group.name,d=T.length;if(b)do{if(b[L]&&b[L].options.groups.indexOf(c)>-1){for(;d--;)T[d]({clientX:H.clientX,clientY:H.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);Q||h(u,"display","")}},_onTouchMove:function(b){if(G){a.active||this._dragStarted(),this._appendGhost();var c=b.touches?b.touches[0]:b,d=c.clientX-G.clientX,e=c.clientY-G.clientY,f=b.touches?"translate3d("+d+"px,"+e+"px,0)":"translate("+d+"px,"+e+"px)";I=!0,H=c,h(u,"webkitTransform",f),h(u,"mozTransform",f),h(u,"msTransform",f),h(u,"transform",f),b.preventDefault()}},_appendGhost:function(){if(!u){var a,b=s.getBoundingClientRect(),c=h(s);u=s.cloneNode(!0),g(u,this.options.ghostClass,!1),g(u,this.options.fallbackClass,!0),h(u,"top",b.top-O(c.marginTop,10)),h(u,"left",b.left-O(c.marginLeft,10)),h(u,"width",b.width),h(u,"height",b.height),h(u,"opacity","0.8"),h(u,"position","fixed"),h(u,"zIndex","100000"),h(u,"pointerEvents","none"),this.options.fallbackOnBody&&N.body.appendChild(u)||w.appendChild(u),a=u.getBoundingClientRect(),h(u,"width",2*b.width-a.width),h(u,"height",2*b.height-a.height)}},_onDragStart:function(a,b){var c=a.dataTransfer,d=this.options;this._offUpEvents(),"clone"==F.pull&&(v=s.cloneNode(!0),h(v,"display","none"),w.insertBefore(v,s)),b?("touch"===b?(e(N,"touchmove",this._onTouchMove),e(N,"touchend",this._onDrop),e(N,"touchcancel",this._onDrop)):(e(N,"mousemove",this._onTouchMove),e(N,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(c&&(c.effectAllowed="move",d.setData&&d.setData.call(this,c,s)),e(N,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(a){var d,e,f,g=this.el,i=this.options,j=i.group,l=j.put,o=F===j,p=i.sort;if(void 0!==a.preventDefault&&(a.preventDefault(),!i.dragoverBubble&&a.stopPropagation()),I=!0,F&&!i.disabled&&(o?p||(f=!w.contains(s)):F.pull&&l&&(F.name===j.name||l.indexOf&&~l.indexOf(F.name)))&&(void 0===a.rootEl||a.rootEl===this.el)){if(U(a,i,this.el),R)return;if(d=c(a.target,i.draggable,g),e=s.getBoundingClientRect(),f)return b(!0),void(v||x?w.insertBefore(s,v||x):p||w.appendChild(s));if(0===g.children.length||g.children[0]===u||g===a.target&&(d=n(g,a))){if(d){if(d.animated)return;r=d.getBoundingClientRect()}b(o),k(w,g,s,e,d,r)!==!1&&(s.contains(g)||(g.appendChild(s),t=g),this._animate(e,s),d&&this._animate(r,d))}else if(d&&!d.animated&&d!==s&&void 0!==d.parentNode[L]){A!==d&&(A=d,B=h(d),C=h(d.parentNode));var q,r=d.getBoundingClientRect(),y=r.right-r.left,z=r.bottom-r.top,D=/left|right|inline/.test(B.cssFloat+B.display)||"flex"==C.display&&0===C["flex-direction"].indexOf("row"),E=d.offsetWidth>s.offsetWidth,G=d.offsetHeight>s.offsetHeight,H=(D?(a.clientX-r.left)/y:(a.clientY-r.top)/z)>.5,J=d.nextElementSibling,K=k(w,g,s,e,d,r);if(K!==!1){if(R=!0,setTimeout(m,30),b(o),1===K||-1===K)q=1===K;else if(D){var M=s.offsetTop,N=d.offsetTop;q=M===N?d.previousElementSibling===s&&!E||H&&E:N>M}else q=J!==s&&!G||H&&G;s.contains(g)||(q&&!J?g.appendChild(s):d.parentNode.insertBefore(s,q?J:d)),t=s.parentNode,this._animate(e,s),this._animate(r,d)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();h(b,"transition","none"),h(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,h(b,"transition","all "+c+"ms"),h(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){h(b,"transition",""),h(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;f(N,"touchmove",this._onTouchMove),f(a,"mouseup",this._onDrop),f(a,"touchend",this._onDrop),f(a,"touchcancel",this._onDrop)},_onDrop:function(b){var c=this.el,d=this.options;clearInterval(this._loopId),clearInterval(J.pid),clearTimeout(this._dragStartTimer),f(N,"mousemove",this._onTouchMove),this.nativeDraggable&&(f(N,"drop",this),f(c,"dragstart",this._onDragStart)),this._offUpEvents(),b&&(I&&(b.preventDefault(),!d.dropBubble&&b.stopPropagation()),u&&u.parentNode.removeChild(u),s&&(this.nativeDraggable&&f(s,"dragend",this),l(s),g(s,this.options.ghostClass,!1),g(s,this.options.chosenClass,!1),w!==t?(E=p(s),E>=0&&(j(null,t,"sort",s,w,D,E),j(this,w,"sort",s,w,D,E),j(null,t,"add",s,w,D,E),j(this,w,"remove",s,w,D,E))):(v&&v.parentNode.removeChild(v),s.nextSibling!==x&&(E=p(s),E>=0&&(j(this,w,"update",s,w,D,E),j(this,w,"sort",s,w,D,E)))),a.active&&((null===E||-1===E)&&(E=D),j(this,w,"end",s,w,D,E),this.save())),w=s=t=u=x=v=y=z=G=H=I=E=A=B=F=a.active=null)},handleEvent:function(a){var b=a.type;"dragover"===b||"dragenter"===b?s&&(this._onDragOver(a),d(a)):("drop"===b||"dragend"===b)&&this._onDrop(a)},toArray:function(){for(var a,b=[],d=this.el.children,e=0,f=d.length,g=this.options;f>e;e++)a=d[e],c(a,g.draggable,this.el)&&b.push(a.getAttribute(g.dataIdAttr)||o(a));return b},sort:function(a){var b={},d=this.el;this.toArray().forEach(function(a,e){var f=d.children[e];c(f,this.options.draggable,d)&&(b[a]=f)},this),a.forEach(function(a){b[a]&&(d.removeChild(b[a]),d.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return c(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&V(c)))},destroy:function(){var a=this.el;a[L]=null,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),T.splice(T.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},a.utils={on:e,off:f,css:h,find:i,is:function(a,b){return!!c(a,b,a)},extend:r,throttle:q,closest:c,toggleClass:g,index:p},a.create=function(b,c){return new a(b,c)},a.version="1.3.0-rc2",a}); \ No newline at end of file +/*! Sortable 1.3.0 - MIT | git://github.com/rubaxa/Sortable.git */ +!function(a){"use strict";"function"==typeof define&&define.amd?define(a):"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=a():"undefined"!=typeof Package?Sortable=a():window.Sortable=a()}(function(){"use strict";function a(a,b){if(!a||!a.nodeType||1!==a.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(a);this.el=a,this.options=b=r({},b),a[L]=this;var c={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(a.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(a,b){a.setData("Text",b.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var d in c)!(d in b)&&(b[d]=c[d]);V(b);for(var f in this)"_"===f.charAt(0)&&(this[f]=this[f].bind(this));this.nativeDraggable=b.forceFallback?!1:P,e(a,"mousedown",this._onTapStart),e(a,"touchstart",this._onTapStart),this.nativeDraggable&&(e(a,"dragover",this),e(a,"dragenter",this)),T.push(this._onDragOver),b.store&&this.sort(b.store.get(this))}function b(a){v&&v.state!==a&&(h(v,"display",a?"none":""),!a&&v.state&&w.insertBefore(v,s),v.state=a)}function c(a,b,c){if(a){c=c||N,b=b.split(".");var d=b.shift().toUpperCase(),e=new RegExp("\\s("+b.join("|")+")(?=\\s)","g");do if(">*"===d&&a.parentNode===c||(""===d||a.nodeName.toUpperCase()==d)&&(!b.length||((" "+a.className+" ").match(e)||[]).length==b.length))return a;while(a!==c&&(a=a.parentNode))}return null}function d(a){a.dataTransfer&&(a.dataTransfer.dropEffect="move"),a.preventDefault()}function e(a,b,c){a.addEventListener(b,c,!1)}function f(a,b,c){a.removeEventListener(b,c,!1)}function g(a,b,c){if(a)if(a.classList)a.classList[c?"add":"remove"](b);else{var d=(" "+a.className+" ").replace(K," ").replace(" "+b+" "," ");a.className=(d+(c?" "+b:"")).replace(K," ")}}function h(a,b,c){var d=a&&a.style;if(d){if(void 0===c)return N.defaultView&&N.defaultView.getComputedStyle?c=N.defaultView.getComputedStyle(a,""):a.currentStyle&&(c=a.currentStyle),void 0===b?c:c[b];b in d||(b="-webkit-"+b),d[b]=c+("string"==typeof c?"":"px")}}function i(a,b,c){if(a){var d=a.getElementsByTagName(b),e=0,f=d.length;if(c)for(;f>e;e++)c(d[e],e);return d}return[]}function j(a,b,c,d,e,f,g){var h=N.createEvent("Event"),i=(a||b[L]).options,j="on"+c.charAt(0).toUpperCase()+c.substr(1);h.initEvent(c,!0,!0),h.to=b,h.from=e||b,h.item=d||b,h.clone=v,h.oldIndex=f,h.newIndex=g,b.dispatchEvent(h),i[j]&&i[j].call(a,h)}function k(a,b,c,d,e,f){var g,h,i=a[L],j=i.options.onMove;return g=N.createEvent("Event"),g.initEvent("move",!0,!0),g.to=b,g.from=a,g.dragged=c,g.draggedRect=d,g.related=e||b,g.relatedRect=f||b.getBoundingClientRect(),a.dispatchEvent(g),j&&(h=j.call(i,g)),h}function l(a){a.draggable=!1}function m(){R=!1}function n(a,b){var c=a.lastElementChild,d=c.getBoundingClientRect();return(b.clientY-(d.top+d.height)>5||b.clientX-(d.right+d.width)>5)&&c}function o(a){for(var b=a.tagName+a.className+a.src+a.href+a.textContent,c=b.length,d=0;c--;)d+=b.charCodeAt(c);return d.toString(36)}function p(a){var b=0;if(!a||!a.parentNode)return-1;for(;a&&(a=a.previousElementSibling);)"TEMPLATE"!==a.nodeName.toUpperCase()&&b++;return b}function q(a,b){var c,d;return function(){void 0===c&&(c=arguments,d=this,setTimeout(function(){1===c.length?a.call(d,c[0]):a.apply(d,c),c=void 0},b))}}function r(a,b){if(a&&b)for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}var s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J={},K=/\s+/g,L="Sortable"+(new Date).getTime(),M=window,N=M.document,O=M.parseInt,P=!!("draggable"in N.createElement("div")),Q=function(a){return a=N.createElement("x"),a.style.cssText="pointer-events:auto","auto"===a.style.pointerEvents}(),R=!1,S=Math.abs,T=([].slice,[]),U=q(function(a,b,c){if(c&&b.scroll){var d,e,f,g,h=b.scrollSensitivity,i=b.scrollSpeed,j=a.clientX,k=a.clientY,l=window.innerWidth,m=window.innerHeight;if(z!==c&&(y=b.scroll,z=c,y===!0)){y=c;do if(y.offsetWidth=l-j)-(h>=j),g=(h>=m-k)-(h>=k),(f||g)&&(d=M)),(J.vx!==f||J.vy!==g||J.el!==d)&&(J.el=d,J.vx=f,J.vy=g,clearInterval(J.pid),d&&(J.pid=setInterval(function(){d===M?M.scrollTo(M.pageXOffset+f*i,M.pageYOffset+g*i):(g&&(d.scrollTop+=g*i),f&&(d.scrollLeft+=f*i))},24)))}},30),V=function(a){var b=a.group;b&&"object"==typeof b||(b=a.group={name:b}),["pull","put"].forEach(function(a){a in b||(b[a]=!0)}),a.groups=" "+b.name+(b.put.join?" "+b.put.join(" "):"")+" "};return a.prototype={constructor:a,_onTapStart:function(a){var b=this,d=this.el,e=this.options,f=a.type,g=a.touches&&a.touches[0],h=(g||a).target,i=h,k=e.filter;if(!("mousedown"===f&&0!==a.button||e.disabled)&&(h=c(h,e.draggable,d))){if(D=p(h),"function"==typeof k){if(k.call(this,a,h,this))return j(b,i,"filter",h,d,D),void a.preventDefault()}else if(k&&(k=k.split(",").some(function(a){return a=c(i,a.trim(),d),a?(j(b,a,"filter",h,d,D),!0):void 0})))return void a.preventDefault();(!e.handle||c(i,e.handle,d))&&this._prepareDragStart(a,g,h)}},_prepareDragStart:function(a,b,c){var d,f=this,h=f.el,j=f.options,k=h.ownerDocument;c&&!s&&c.parentNode===h&&(G=a,w=h,s=c,t=s.parentNode,x=s.nextSibling,F=j.group,d=function(){f._disableDelayedDrag(),s.draggable=!0,g(s,f.options.chosenClass,!0),f._triggerDragStart(b)},j.ignore.split(",").forEach(function(a){i(s,a.trim(),l)}),e(k,"mouseup",f._onDrop),e(k,"touchend",f._onDrop),e(k,"touchcancel",f._onDrop),j.delay?(e(k,"mouseup",f._disableDelayedDrag),e(k,"touchend",f._disableDelayedDrag),e(k,"touchcancel",f._disableDelayedDrag),e(k,"mousemove",f._disableDelayedDrag),e(k,"touchmove",f._disableDelayedDrag),f._dragStartTimer=setTimeout(d,j.delay)):d())},_disableDelayedDrag:function(){var a=this.el.ownerDocument;clearTimeout(this._dragStartTimer),f(a,"mouseup",this._disableDelayedDrag),f(a,"touchend",this._disableDelayedDrag),f(a,"touchcancel",this._disableDelayedDrag),f(a,"mousemove",this._disableDelayedDrag),f(a,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(a){a?(G={target:s,clientX:a.clientX,clientY:a.clientY},this._onDragStart(G,"touch")):this.nativeDraggable?(e(s,"dragend",this),e(w,"dragstart",this._onDragStart)):this._onDragStart(G,!0);try{N.selection?N.selection.empty():window.getSelection().removeAllRanges()}catch(b){}},_dragStarted:function(){w&&s&&(g(s,this.options.ghostClass,!0),a.active=this,j(this,w,"start",s,w,D))},_emulateDragOver:function(){if(H){if(this._lastX===H.clientX&&this._lastY===H.clientY)return;this._lastX=H.clientX,this._lastY=H.clientY,Q||h(u,"display","none");var a=N.elementFromPoint(H.clientX,H.clientY),b=a,c=" "+this.options.group.name,d=T.length;if(b)do{if(b[L]&&b[L].options.groups.indexOf(c)>-1){for(;d--;)T[d]({clientX:H.clientX,clientY:H.clientY,target:a,rootEl:b});break}a=b}while(b=b.parentNode);Q||h(u,"display","")}},_onTouchMove:function(b){if(G){a.active||this._dragStarted(),this._appendGhost();var c=b.touches?b.touches[0]:b,d=c.clientX-G.clientX,e=c.clientY-G.clientY,f=b.touches?"translate3d("+d+"px,"+e+"px,0)":"translate("+d+"px,"+e+"px)";I=!0,H=c,h(u,"webkitTransform",f),h(u,"mozTransform",f),h(u,"msTransform",f),h(u,"transform",f),b.preventDefault()}},_appendGhost:function(){if(!u){var a,b=s.getBoundingClientRect(),c=h(s);u=s.cloneNode(!0),g(u,this.options.ghostClass,!1),g(u,this.options.fallbackClass,!0),h(u,"top",b.top-O(c.marginTop,10)),h(u,"left",b.left-O(c.marginLeft,10)),h(u,"width",b.width),h(u,"height",b.height),h(u,"opacity","0.8"),h(u,"position","fixed"),h(u,"zIndex","100000"),h(u,"pointerEvents","none"),this.options.fallbackOnBody&&N.body.appendChild(u)||w.appendChild(u),a=u.getBoundingClientRect(),h(u,"width",2*b.width-a.width),h(u,"height",2*b.height-a.height)}},_onDragStart:function(a,b){var c=a.dataTransfer,d=this.options;this._offUpEvents(),"clone"==F.pull&&(v=s.cloneNode(!0),h(v,"display","none"),w.insertBefore(v,s)),b?("touch"===b?(e(N,"touchmove",this._onTouchMove),e(N,"touchend",this._onDrop),e(N,"touchcancel",this._onDrop)):(e(N,"mousemove",this._onTouchMove),e(N,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(c&&(c.effectAllowed="move",d.setData&&d.setData.call(this,c,s)),e(N,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(a){var d,e,f,g=this.el,i=this.options,j=i.group,l=j.put,o=F===j,p=i.sort;if(void 0!==a.preventDefault&&(a.preventDefault(),!i.dragoverBubble&&a.stopPropagation()),I=!0,F&&!i.disabled&&(o?p||(f=!w.contains(s)):F.pull&&l&&(F.name===j.name||l.indexOf&&~l.indexOf(F.name)))&&(void 0===a.rootEl||a.rootEl===this.el)){if(U(a,i,this.el),R)return;if(d=c(a.target,i.draggable,g),e=s.getBoundingClientRect(),f)return b(!0),void(v||x?w.insertBefore(s,v||x):p||w.appendChild(s));if(0===g.children.length||g.children[0]===u||g===a.target&&(d=n(g,a))){if(d){if(d.animated)return;r=d.getBoundingClientRect()}b(o),k(w,g,s,e,d,r)!==!1&&(s.contains(g)||(g.appendChild(s),t=g),this._animate(e,s),d&&this._animate(r,d))}else if(d&&!d.animated&&d!==s&&void 0!==d.parentNode[L]){A!==d&&(A=d,B=h(d),C=h(d.parentNode));var q,r=d.getBoundingClientRect(),y=r.right-r.left,z=r.bottom-r.top,D=/left|right|inline/.test(B.cssFloat+B.display)||"flex"==C.display&&0===C["flex-direction"].indexOf("row"),E=d.offsetWidth>s.offsetWidth,G=d.offsetHeight>s.offsetHeight,H=(D?(a.clientX-r.left)/y:(a.clientY-r.top)/z)>.5,J=d.nextElementSibling,K=k(w,g,s,e,d,r);if(K!==!1){if(R=!0,setTimeout(m,30),b(o),1===K||-1===K)q=1===K;else if(D){var M=s.offsetTop,N=d.offsetTop;q=M===N?d.previousElementSibling===s&&!E||H&&E:N>M}else q=J!==s&&!G||H&&G;s.contains(g)||(q&&!J?g.appendChild(s):d.parentNode.insertBefore(s,q?J:d)),t=s.parentNode,this._animate(e,s),this._animate(r,d)}}}},_animate:function(a,b){var c=this.options.animation;if(c){var d=b.getBoundingClientRect();h(b,"transition","none"),h(b,"transform","translate3d("+(a.left-d.left)+"px,"+(a.top-d.top)+"px,0)"),b.offsetWidth,h(b,"transition","all "+c+"ms"),h(b,"transform","translate3d(0,0,0)"),clearTimeout(b.animated),b.animated=setTimeout(function(){h(b,"transition",""),h(b,"transform",""),b.animated=!1},c)}},_offUpEvents:function(){var a=this.el.ownerDocument;f(N,"touchmove",this._onTouchMove),f(a,"mouseup",this._onDrop),f(a,"touchend",this._onDrop),f(a,"touchcancel",this._onDrop)},_onDrop:function(b){var c=this.el,d=this.options;clearInterval(this._loopId),clearInterval(J.pid),clearTimeout(this._dragStartTimer),f(N,"mousemove",this._onTouchMove),this.nativeDraggable&&(f(N,"drop",this),f(c,"dragstart",this._onDragStart)),this._offUpEvents(),b&&(I&&(b.preventDefault(),!d.dropBubble&&b.stopPropagation()),u&&u.parentNode.removeChild(u),s&&(this.nativeDraggable&&f(s,"dragend",this),l(s),g(s,this.options.ghostClass,!1),g(s,this.options.chosenClass,!1),w!==t?(E=p(s),E>=0&&(j(null,t,"sort",s,w,D,E),j(this,w,"sort",s,w,D,E),j(null,t,"add",s,w,D,E),j(this,w,"remove",s,w,D,E))):(v&&v.parentNode.removeChild(v),s.nextSibling!==x&&(E=p(s),E>=0&&(j(this,w,"update",s,w,D,E),j(this,w,"sort",s,w,D,E)))),a.active&&((null===E||-1===E)&&(E=D),j(this,w,"end",s,w,D,E),this.save())),w=s=t=u=x=v=y=z=G=H=I=E=A=B=F=a.active=null)},handleEvent:function(a){var b=a.type;"dragover"===b||"dragenter"===b?s&&(this._onDragOver(a),d(a)):("drop"===b||"dragend"===b)&&this._onDrop(a)},toArray:function(){for(var a,b=[],d=this.el.children,e=0,f=d.length,g=this.options;f>e;e++)a=d[e],c(a,g.draggable,this.el)&&b.push(a.getAttribute(g.dataIdAttr)||o(a));return b},sort:function(a){var b={},d=this.el;this.toArray().forEach(function(a,e){var f=d.children[e];c(f,this.options.draggable,d)&&(b[a]=f)},this),a.forEach(function(a){b[a]&&(d.removeChild(b[a]),d.appendChild(b[a]))})},save:function(){var a=this.options.store;a&&a.set(this)},closest:function(a,b){return c(a,b||this.options.draggable,this.el)},option:function(a,b){var c=this.options;return void 0===b?c[a]:(c[a]=b,void("group"===a&&V(c)))},destroy:function(){var a=this.el;a[L]=null,f(a,"mousedown",this._onTapStart),f(a,"touchstart",this._onTapStart),this.nativeDraggable&&(f(a,"dragover",this),f(a,"dragenter",this)),Array.prototype.forEach.call(a.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),T.splice(T.indexOf(this._onDragOver),1),this._onDrop(),this.el=a=null}},a.utils={on:e,off:f,css:h,find:i,is:function(a,b){return!!c(a,b,a)},extend:r,throttle:q,closest:c,toggleClass:g,index:p},a.create=function(b,c){return new a(b,c)},a.version="1.3.0",a}); \ No newline at end of file diff --git a/component.json b/component.json index 75c1944fc..20bfb914f 100644 --- a/component.json +++ b/component.json @@ -1,7 +1,7 @@ { "name": "Sortable", "main": "Sortable.js", - "version": "1.3.0-rc2", + "version": "1.3.0", "homepage": "http://rubaxa.github.io/Sortable/", "repo": "RubaXa/Sortable", "authors": [ diff --git a/log.txt b/log.txt new file mode 100644 index 000000000..3acc32890 --- /dev/null +++ b/log.txt @@ -0,0 +1,1401 @@ +commit 72be2e91aec387a23cf84fb9ec831a906df4ae7c +Author: RubaXa +Date: Thu May 7 23:28:28 2015 +0300 + + #376: * fixed 'evt.target' + + Sortable.js | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 08c31fc0bba9509280f2f3847ab47bee2ea9bab9 +Author: RubaXa +Date: Thu May 7 23:14:18 2015 +0300 + + #379: + 'delay' description + + Sortable.js | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 14864bc067dc937b88031dac77344ad9c44fa7aa +Author: RubaXa +Date: Thu Apr 16 18:15:27 2015 +0300 + + #335: call save only if 'active' + + Sortable.js | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +commit a89b3b3edc6422f1b3540a4811434d4900d91719 +Author: RubaXa +Date: Wed Apr 15 14:27:28 2015 +0300 + + #347: + moveVector + + Sortable.js | 12 ++++++++---- + 1 file changed, 8 insertions(+), 4 deletions(-) + +commit 34328a81b527218358b4bb17ca8613d2891a2c82 +Author: RubaXa +Date: Wed Apr 15 13:19:18 2015 +0300 + + #273: + onMove event + + Sortable.js | 113 ++++++++++++++++++++++++++++++++++++++---------------------- + 1 file changed, 72 insertions(+), 41 deletions(-) + +commit b30ece99c5c87752db61b452e04467e0a3cf5f79 +Author: RubaXa +Date: Tue Apr 14 21:37:41 2015 +0300 + + v1.2.0: Events, Nested, Drop text, IE11, iframe and etc + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c1f6cf50c4fc6fa16d12c0c804fe8464bbda0c0f +Author: RubaXa +Date: Sat Apr 11 11:13:32 2015 +0300 + + #308: * allow drop text + + Sortable.js | 10 ++++------ + 1 file changed, 4 insertions(+), 6 deletions(-) + +commit 5c4e3dce2a8b0b28c0e7d7235377d13cc71a9bbd +Author: RubaXa +Date: Thu Apr 9 11:42:14 2015 +0300 + + #318, #328: + Improved work with events transmitted through the options + + Sortable.js | 63 ++++++++++++++++++++++++++++--------------------------------- + 1 file changed, 29 insertions(+), 34 deletions(-) + +commit fcdb0c915b0e4c7fb429f765cdb5a10ab3226e27 +Merge: 40af728 c6a536a +Author: RubaXa +Date: Thu Apr 9 10:57:16 2015 +0300 + + + master v1.1.1 + +commit 40af728d53c8ed6ca41dead85ceb08d71b8a77fa +Author: RubaXa +Date: Mon Apr 6 00:00:55 2015 +0300 + + #325: * changed the order of the methods (code style) + + Sortable.js | 156 ++++++++++++++++++++++++++++++------------------------------ + 1 file changed, 78 insertions(+), 78 deletions(-) + +commit 723bc1e605de32555fa9e5fd5d531832cfc9848e +Author: RubaXa +Date: Sun Apr 5 23:57:39 2015 +0300 + + #325: PR refactoring: - _enableDragStart & revert lost fixes + + Sortable.js | 103 +++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 54 insertions(+), 49 deletions(-) + +commit 78c53ba5e19c6616893183e655cf9d28cb1ec77d +Author: jboulouloubi +Date: Wed Apr 1 18:35:36 2015 -0400 + + Add delay between touchstart and dragstart + + Sortable.js | 135 ++++++++++++++++++++++++++++++++++++++---------------------- + 1 file changed, 86 insertions(+), 49 deletions(-) + +commit 5fd36b19b18ef81148ae38078a159fbd281120aa +Author: RubaXa +Date: Wed Mar 11 18:36:32 2015 +0300 + + * RSPACE + + Sortable.js | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +commit 6dc1159d3166272f579da1618b80c9bc3bcd3437 +Merge: 8b818ed f802c84 +Author: Lebedev Konstantin +Date: Wed Mar 11 18:35:47 2015 +0300 + + Merge pull request #296 from bmustiata/dev + + Don't join class names when removing classes after additions. + +commit 8b818ed280bfe54e4e51d5ff375f751eb590239f +Author: RubaXa +Date: Wed Mar 11 18:33:36 2015 +0300 + + #288: + use 'ownerDocument' for correct working with/into iframe + + Sortable.js | 17 ++++++++++------- + 1 file changed, 10 insertions(+), 7 deletions(-) + +commit 7309734dbf52e0e9d9682ad563660a5d0acb51de +Author: RubaXa +Date: Wed Mar 11 18:06:34 2015 +0300 + + #290: + clone simple 'option' and 'extend' method + + Sortable.js | 15 ++++++++++++++- + 1 file changed, 14 insertions(+), 1 deletion(-) + +commit 1f58b1b10b7eca676654e0989c7831ae8e9f9fdd +Author: Noah Chase +Date: Tue Mar 10 12:38:43 2015 -0400 + + use `page{d}Offset` instead of `scroll{d}` + + All modern browsers seem to support `window.pageXOffset` and `window.pageYOffset`, which are aliases for `window.scrollX` and `window.scrollY`. + + IE doesn't seem to have `window.scrollX` and `window.scrollY`. + + fixes #302 + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit f802c84d05f49adcbf8627dedb689225a27afba9 +Author: Bogdan Mustiata +Date: Thu Mar 5 12:13:56 2015 +0100 + + Use precompiled RegExp. + + Sortable.js | 9 ++++----- + 1 file changed, 4 insertions(+), 5 deletions(-) + +commit c7257ae198ba136ebec55b9cfae760f9e89c4e9a +Author: Bogdan Mustiata +Date: Tue Mar 3 14:53:15 2015 +0100 + + Don't join class names when removing classes after additions. + + Sortable.js | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +commit c6a536aa3f999b2c556f301527fa1e7186a67d65 +Author: RubaXa +Date: Fri Feb 20 08:49:33 2015 +0300 + + v1.1.1: #227, #285 + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 0b909aa59d24e90220f549e4d4106b6e0b760f05 +Author: RubaXa +Date: Thu Feb 19 21:20:16 2015 +0300 + + #285: * fixed dragover handler + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 87e336a175ec4d0e593df685fe1f9ced612395fd +Author: RubaXa +Date: Mon Feb 16 08:57:02 2015 +0300 + + #277: * fixed handle & filter + + Sortable.js | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +commit 1482449b1816b7bdce9f96be51c47000b9a73453 +Author: RubaXa +Date: Thu Feb 19 21:20:16 2015 +0300 + + #285: * fixed dragover handler + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8b3e8f949710d3360c92b8fdc2d9f3fcd58d7e30 +Author: RubaXa +Date: Mon Feb 16 18:06:58 2015 +0300 + + #279: * dataAttr -> dataIdAttr + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 7dc8be57559534d5a93cf5aff1306a0f83daf56d +Author: RubaXa +Date: Mon Feb 16 17:55:24 2015 +0300 + + #279: + dataIdAttr + + Sortable.js | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +commit 1c8839f08fdbe5399a216cfa4872df97eda794a6 +Author: RubaXa +Date: Mon Feb 16 08:57:02 2015 +0300 + + #277: * fixed handle & filter + + Sortable.js | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + +commit 070a5715084c860dc8ddd5bedd17be09ccf7a102 +Author: RubaXa +Date: Fri Feb 13 22:01:00 2015 +0300 + + v1.1.0: Support IE9, CDN, enhancement auto-scrolling, React-mixin and more. + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 563311f25eddbeb7b0276593f5a7d787504c7026 +Author: RubaXa +Date: Wed Feb 11 23:16:46 2015 +0300 + + #271: + remove 'transform' (#issuecomment-73954644) + + Sortable.js | 1 + + 1 file changed, 1 insertion(+) + +commit 4c0f1afd324e8b598782a8fa62bfa5b8a21401ef +Author: RubaXa +Date: Wed Feb 11 19:12:00 2015 +0300 + + #256: - _onDrag + + Sortable.js | 12 ++++++++---- + 1 file changed, 8 insertions(+), 4 deletions(-) + +commit e97970b303af821d517ecc42a5f97c8a5fd77e28 +Author: RubaXa +Date: Wed Feb 11 18:12:28 2015 +0300 + + #256: uber-autoscroll, support drag between lists + + Sortable.js | 172 +++++++++++++++++++++++++++++++----------------------------- + 1 file changed, 90 insertions(+), 82 deletions(-) + +commit f0d7ff7339f48f417c0ad549123809fe9c7fa6e0 +Merge: ab52c13 750bef7 +Author: RubaXa +Date: Wed Feb 11 16:56:07 2015 +0300 + + Merge branch 'dev' into scroll + +commit 750bef7a8f95349b158d7fafcda05ee25de77d6b +Merge: 64ec81a 15d6f07 +Author: RubaXa +Date: Wed Feb 11 16:55:55 2015 +0300 + + Merge branch 'drop-text' into dev + +commit ab52c138509968f1c85dd2c3d5205a85e54ef797 +Author: RubaXa +Date: Tue Feb 10 23:20:37 2015 +0300 + + #271: * logic of auto-scrolling + + Sortable.js | 20 ++++++++++++++------ + 1 file changed, 14 insertions(+), 6 deletions(-) + +commit d2fa23b897900043cfdc156e09dfbabd62a63f8f +Merge: c71b88f 21bf07a +Author: RubaXa +Date: Mon Feb 9 17:21:50 2015 +0300 + + + merge 'dev' + +commit 21bf07a93fe0ec9a997a6d81b117ce64198e2837 +Author: RubaXa +Date: Mon Feb 9 17:16:40 2015 +0300 + + #256: * fixed auto-scrolling + + Sortable.js | 16 ++++++---------- + 1 file changed, 6 insertions(+), 10 deletions(-) + +commit 15d6f07a01f299bc1aa2f4240ae6713414e797ad +Author: RubaXa +Date: Sat Feb 7 23:06:01 2015 +0300 + + #254: + check 'effectAllowed' on 'dragover' + + Sortable.js | 4 ++++ + 1 file changed, 4 insertions(+) + +commit 7bff4352d60cc1991f245777bfa858e663a8faaa +Author: RubaXa +Date: Fri Feb 6 12:24:01 2015 +0300 + + #250: + additional check + + Sortable.js | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) + +commit c71b88f0756a3cafe62eec4a93ddf82b8798d120 +Author: RubaXa +Date: Fri Feb 6 11:38:35 2015 +0300 + + #251: + 'mousemove' unbind + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit c9051c24e18269ad13ce5ba4ddcf5ac7406f4e0a +Author: RubaXa +Date: Mon Feb 2 14:20:04 2015 +0300 + + + support IE9 + + Sortable.js | 37 ++++++++++++++++++++++--------------- + 1 file changed, 22 insertions(+), 15 deletions(-) + +commit fb3abe8224d40e6d168f832d73a6caa0e96e004f +Merge: 705b3ed dce3eb2 +Author: RubaXa +Date: Tue Jan 27 23:47:58 2015 +0300 + + Merge branch 'dev' of github.com:RubaXa/Sortable into dev + +commit f500b679f22b5aadf794a522751d5bb13ba881a0 +Author: RubaXa +Date: Tue Jan 27 23:47:16 2015 +0300 + + #238: * disabled + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 5325c8a84224f231578f092ca56382480652cc91 +Author: Markus Ast +Date: Tue Jan 27 16:41:11 2015 +0100 + + fix index calculation to skip templates + + Sortable.js | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit 0ce769bb479c562882aab65bf5e5c9c5afba5f55 +Merge: 8f2aa5e fa2651f +Author: RubaXa +Date: Mon Jan 26 22:07:44 2015 +0300 + + v1.0.1: #231, #210, #207, #205, #151 + +commit 8f2aa5eb68f5f31fc1cd0db7a5a3d76c06878803 +Author: RubaXa +Date: Mon Jan 26 16:02:31 2015 +0300 + + + create 'cloneEl' on dragStart + + Sortable.js | 13 ++++++------- + 1 file changed, 6 insertions(+), 7 deletions(-) + +commit 06aac74871f3fd25a454df2fd7709ae5494e48ab +Author: RubaXa +Date: Mon Jan 12 18:56:35 2015 +0300 + + #210: + 'dropBubble: false' & 'dragoverBubble: false' options + + Sortable.js | 11 +++++++---- + 1 file changed, 7 insertions(+), 4 deletions(-) + +commit 3f909d84df4dcbc5e82367d7cde65536117f4660 +Author: RubaXa +Date: Sat Jan 10 21:15:37 2015 +0300 + + #207: * newIndex + + Sortable.js | 39 ++++++++++++++++++++++----------------- + 1 file changed, 22 insertions(+), 17 deletions(-) + +commit a5532380f9956b13b969ede386c85e568ba26a30 +Author: RubaXa +Date: Sat Jan 10 20:19:41 2015 +0300 + + #205: * support 'clone' for angular + + Sortable.js | 1 + + 1 file changed, 1 insertion(+) + +commit b1daa70a2a067bb3c9a577dff7b1f0986e3cf057 +Author: raphj +Date: Sun Dec 28 10:26:28 2014 +0100 + + Make Sotable compatible xhtml + + comparisons of node names (via the nodeName property) are done in upper case. However, nodeName is lower case in xhtml. Let's do everything in upper case. + + Sortable.js | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 0ffa616f100fb340944ccb38e8b6f85020e10c51 +Author: RubaXa +Date: Fri Dec 26 09:20:11 2014 +0300 + + #199: + check 'dataTransfer' exists + + Sortable.js | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +commit 9c618aa83b30dea81fa621a1376776c770df91bf +Author: RubaXa +Date: Fri Dec 19 17:57:25 2014 +0300 + + #185: finaly fix group & mobile + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit 8ee92ddd32722240343d7e2e53ba27e2b149b1aa +Author: RubaXa +Date: Fri Dec 19 17:39:24 2014 +0300 + + #185: fixed group & touch + + Sortable.js | 34 ++++++++++++++++++++++------------ + 1 file changed, 22 insertions(+), 12 deletions(-) + +commit 126cd94a0a3b4f71fb87928857eafc5a69119c84 +Merge: 9a9670e 91a1569 +Author: RubaXa +Date: Fri Dec 19 10:10:29 2014 +0300 + + Merge branch 'dev' of github.com:RubaXa/Sortable into dev + +commit 9a9670ec4c6bb61dc8beb0acbb0d7b09109e17e3 +Author: RubaXa +Date: Fri Dec 19 10:10:02 2014 +0300 + + #184: * 'start' event + + Sortable.js | 36 +++++++++++++++++------------------- + 1 file changed, 17 insertions(+), 19 deletions(-) + +commit a22f9c1fc784b8dd92a2d3cb049e337a0410fa44 +Author: Roel van Duijnhoven +Date: Thu Dec 18 12:18:02 2014 +0100 + + Sort event does not always fire + + In the dev branch the `sort` event is not always correctly called on the receiving list. This IS working in the latest released branch. The fix is trivial and included in this PR. + + The case is illustrated in this JsBin: http://jsbin.com/muxojulevo/3/edit. It occurs whenever an item is picked up from a list and dropped in a nested container. + + Sortable.js | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +commit b2fe4710125b98366d030f9b2e12e84bd8e5ee0d +Author: RubaXa +Date: Thu Dec 18 00:16:05 2014 +0300 + + #131: v1.0, done + + Sortable.js | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +commit 6656e45f302469f37aa7da0f9b68d70ff0b2f100 +Author: RubaXa +Date: Tue Dec 16 20:50:38 2014 +0300 + + #166: fixed _onDragOver & group + + Sortable.js | 13 ++++++++----- + 1 file changed, 8 insertions(+), 5 deletions(-) + +commit 8141f12db3d179b4c89fbc407d3176de81032744 +Author: RubaXa +Date: Tue Dec 16 19:53:14 2014 +0300 + + #173: + save() method + + Sortable.js | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +commit 73f1f09aad6aa441fef46a0bcff18a815b38f4ce +Author: RubaXa +Date: Tue Dec 16 19:42:04 2014 +0300 + + #172: + _cloneHide + + Sortable.js | 23 +++++++++++++++++------ + 1 file changed, 17 insertions(+), 6 deletions(-) + +commit c5b305011d58ba995555c68819b2c671517d7e95 +Author: RubaXa +Date: Mon Dec 15 11:35:06 2014 +0300 + + #171: + preventDefault + + Sortable.js | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +commit 0163bcd1660cd849af499cb01d9fa579102cce15 +Merge: ea1aa2d a71c6a0 +Author: RubaXa +Date: Mon Dec 15 00:31:12 2014 +0300 + + Merge branch 'dev' of github.com:RubaXa/Sortable into dev + +commit ea1aa2de6b0569384db5ebed939ee3443824ca5a +Author: RubaXa +Date: Mon Dec 15 00:27:40 2014 +0300 + + #166: + stopPropagation in _onDragOver + + Sortable.js | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +commit a71c6a0f401824466338fcade05509072ee01299 +Merge: d6dcc64 df59738 +Author: Lebedev Konstantin +Date: Sun Dec 14 10:27:26 2014 +0300 + + Merge pull request #168 from ghjunior/index-ignore-template + + Ignore