1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-23 15:19:42 +02:00

WIP document versioning

This commit is contained in:
Harvey Kandola 2018-03-16 18:27:33 +00:00
parent ba52dfa11d
commit 089457f16e
6 changed files with 222 additions and 67 deletions

View file

@ -109,7 +109,7 @@
scrollOffsetX,
scrollOffsetY
;
;
// Delect scrollEl
if (scrollParentEl !== rootEl) {
@ -160,7 +160,7 @@
scrollOffsetY = vy ? vy * speed : 0;
scrollOffsetX = vx ? vx * speed : 0;
if ('function' === typeof(scrollCustomFn)) {
if ('function' === typeof (scrollCustomFn)) {
return scrollCustomFn.call(_this, scrollOffsetX, scrollOffsetY, evt);
}
@ -202,7 +202,7 @@
var originalGroup = options.group;
if (!originalGroup || typeof originalGroup != 'object') {
originalGroup = {name: originalGroup};
originalGroup = { name: originalGroup };
}
group.name = originalGroup.name;
@ -212,7 +212,7 @@
options.group = group;
}
;
;
/**
@ -261,7 +261,7 @@
fallbackClass: 'sortable-fallback',
fallbackOnBody: false,
fallbackTolerance: 0,
fallbackOffset: {x: 0, y: 0}
fallbackOffset: { x: 0, y: 0 }
};
@ -555,7 +555,7 @@
_onTouchMove: function (/**TouchEvent*/evt) {
if (tapEvt) {
var options = this.options,
var options = this.options,
fallbackTolerance = options.fallbackTolerance,
fallbackOffset = options.fallbackOffset,
touch = evt.touches ? evt.touches[0] : evt,
@ -781,7 +781,7 @@
halfway = (floating ? (evt.clientX - targetRect.left) / width : (evt.clientY - targetRect.top) / height) > 0.5,
nextSibling = target.nextElementSibling,
after = false
;
;
if (floating) {
var elTop = dragEl.offsetTop,
@ -795,7 +795,7 @@
} else {
after = tgTop > elTop;
}
} else if (!isMovingBetweenSortable) {
} else if (!isMovingBetweenSortable) {
after = (nextSibling !== dragEl) && !isLong || halfway && isLong;
}
@ -963,30 +963,30 @@
this._nulling();
},
_nulling: function() {
_nulling: function () {
rootEl =
dragEl =
parentEl =
ghostEl =
nextEl =
cloneEl =
lastDownEl =
dragEl =
parentEl =
ghostEl =
nextEl =
cloneEl =
lastDownEl =
scrollEl =
scrollParentEl =
scrollEl =
scrollParentEl =
tapEvt =
touchEvt =
tapEvt =
touchEvt =
moved =
newIndex =
moved =
newIndex =
lastEl =
lastCSS =
lastEl =
lastCSS =
putSortable =
activeGroup =
Sortable.active = null;
putSortable =
activeGroup =
Sortable.active = null;
savedInputChecked.forEach(function (el) {
el.checked = true;
@ -1455,7 +1455,7 @@
};
}
}));
} catch (err) {}
} catch (err) { }
// Export utils
Sortable.utils = {
@ -1489,3 +1489,6 @@
Sortable.version = '1.6.0';
return Sortable;
});
// http://rubaxa.github.io/Sortable/