Update to Drupal 8.0-dev-2015-11-17. Commits through da81cd220, Tue Nov 17 15:53:49 2015 +0000, Issue #2617224 by Wim Leers: Move around/fix some documentation.
This commit is contained in:
parent
4afb23bbd3
commit
7784f4c23d
929 changed files with 19798 additions and 5304 deletions
|
@ -236,14 +236,10 @@
|
|||
|
||||
// Add event bindings to the document. The self variable is passed along
|
||||
// as event handlers do not have direct access to the tableDrag object.
|
||||
if (Modernizr.touchevents) {
|
||||
$(document).on('touchmove', function (event) { return self.dragRow(event.originalEvent.touches[0], self); });
|
||||
$(document).on('touchend', function (event) { return self.dropRow(event.originalEvent.touches[0], self); });
|
||||
}
|
||||
else {
|
||||
$(document).on('mousemove', function (event) { return self.dragRow(event, self); });
|
||||
$(document).on('mouseup', function (event) { return self.dropRow(event, self); });
|
||||
}
|
||||
$(document).on('touchmove', function (event) { return self.dragRow(event.originalEvent.touches[0], self); });
|
||||
$(document).on('touchend', function (event) { return self.dropRow(event.originalEvent.touches[0], self); });
|
||||
$(document).on('mousemove pointermove', function (event) { return self.dragRow(event, self); });
|
||||
$(document).on('mouseup pointerup', function (event) { return self.dropRow(event, self); });
|
||||
|
||||
// React to localStorage event showing or hiding weight columns.
|
||||
$(window).on('storage', $.proxy(function (e) {
|
||||
|
@ -460,19 +456,13 @@
|
|||
$item.find('td').eq(0).prepend(handle);
|
||||
}
|
||||
|
||||
if (Modernizr.touchevents) {
|
||||
handle.on('touchstart', function (event) {
|
||||
event.preventDefault();
|
||||
handle.on('mousedown touchstart pointerdown', function (event) {
|
||||
event.preventDefault();
|
||||
if (event.originalEvent.type === 'touchstart') {
|
||||
event = event.originalEvent.touches[0];
|
||||
self.dragStart(event, self, item);
|
||||
});
|
||||
}
|
||||
else {
|
||||
handle.on('mousedown', function (event) {
|
||||
event.preventDefault();
|
||||
self.dragStart(event, self, item);
|
||||
});
|
||||
}
|
||||
}
|
||||
self.dragStart(event, self, item);
|
||||
});
|
||||
|
||||
// Prevent the anchor tag from jumping us to the top of the page.
|
||||
handle.on('click', function (e) {
|
||||
|
|
Reference in a new issue