Feature: Job Queues
Also UI style, theme and element changes
This commit is contained in:
@@ -41952,7 +41952,7 @@ jQuery.fn.DataTable.defaults.aLengthMenu = [[10, 20, 50, -1], [10, 20, 50, "All"
|
||||
|
||||
function subMenuShow() {
|
||||
var $this = $(this);
|
||||
var $subMenu = $this.children('ul.subMenu');
|
||||
var $subMenu = $this.children('ul');
|
||||
var hideToken = $this.data('menuHideToken');
|
||||
|
||||
if (hideToken)
|
||||
@@ -41963,7 +41963,7 @@ jQuery.fn.DataTable.defaults.aLengthMenu = [[10, 20, 50, -1], [10, 20, 50, "All"
|
||||
}
|
||||
function subMenuHide() {
|
||||
var $this = $(this);
|
||||
var $subMenu = $this.children('ul.subMenu');
|
||||
var $subMenu = $this.children('ul');
|
||||
|
||||
var hideToken = window.setTimeout(function () {
|
||||
$subMenu.hide();
|
||||
@@ -41974,7 +41974,7 @@ jQuery.fn.DataTable.defaults.aLengthMenu = [[10, 20, 50, -1], [10, 20, 50, "All"
|
||||
function subMenuTouchDown(e, preventClick) {
|
||||
var $this = $(this);
|
||||
var $link = $this.children('a');
|
||||
var $subMenu = $this.children('ul.subMenu');
|
||||
var $subMenu = $this.children('ul');
|
||||
|
||||
if (!$subMenu.is(':visible')) {
|
||||
|
||||
@@ -41998,17 +41998,17 @@ jQuery.fn.DataTable.defaults.aLengthMenu = [[10, 20, 50, -1], [10, 20, 50, "All"
|
||||
if (Modernizr.hasEvent('pointerdown')) {
|
||||
// Pointer Events
|
||||
$menu
|
||||
.on('pointerover', 'li.hasSubMenu', function (e) {
|
||||
.on('pointerover', 'li.d-sm', function (e) {
|
||||
if (e.originalEvent.pointerType !== 'touch') {
|
||||
subMenuShow.call(this);
|
||||
}
|
||||
})
|
||||
.on('pointerout', 'li.hasSubMenu', function (e) {
|
||||
.on('pointerout', 'li.d-sm', function (e) {
|
||||
if (e.originalEvent.pointerType !== 'touch') {
|
||||
subMenuHide.call(this);
|
||||
}
|
||||
})
|
||||
.on('pointerdown', 'li.hasSubMenu', function (e) {
|
||||
.on('pointerdown', 'li.d-sm', function (e) {
|
||||
if (e.originalEvent.pointerType === 'touch') {
|
||||
return subMenuTouchDown.call(this, e, true);
|
||||
}
|
||||
@@ -42016,23 +42016,23 @@ jQuery.fn.DataTable.defaults.aLengthMenu = [[10, 20, 50, -1], [10, 20, 50, "All"
|
||||
$(document).on('pointerdown', function (e) {
|
||||
if (e.originalEvent.pointerType === 'touch') {
|
||||
if ($(e.target).closest('#menu').length == 0)
|
||||
$menu.find('li.hasSubMenu>ul.subMenu:visible').hide();
|
||||
$menu.find('li.d-sm>ul.subMenu:visible').hide();
|
||||
}
|
||||
});
|
||||
} else if (Modernizr.hasEvent('mspointerdown')) {
|
||||
// MS Pointer Events
|
||||
$menu
|
||||
.on('MSPointerOver', 'li.hasSubMenu', function (e) {
|
||||
.on('MSPointerOver', 'li.d-sm', function (e) {
|
||||
if (e.originalEvent.pointerType !== e.originalEvent.MSPOINTER_TYPE_TOUCH) {
|
||||
subMenuShow.call(this);
|
||||
}
|
||||
})
|
||||
.on('MSPointerOut', 'li.hasSubMenu', function (e) {
|
||||
.on('MSPointerOut', 'li.d-sm', function (e) {
|
||||
if (e.originalEvent.pointerType !== e.originalEvent.MSPOINTER_TYPE_TOUCH) {
|
||||
subMenuHide.call(this);
|
||||
}
|
||||
})
|
||||
.on('MSPointerDown', 'li.hasSubMenu', function (e) {
|
||||
.on('MSPointerDown', 'li.d-sm', function (e) {
|
||||
if (e.originalEvent.pointerType === e.originalEvent.MSPOINTER_TYPE_TOUCH) {
|
||||
return subMenuTouchDown.call(this, e, true);
|
||||
}
|
||||
@@ -42040,22 +42040,22 @@ jQuery.fn.DataTable.defaults.aLengthMenu = [[10, 20, 50, -1], [10, 20, 50, "All"
|
||||
$(document).on('MSPointerDown', function (e) {
|
||||
if (e.originalEvent.pointerType === e.originalEvent.MSPOINTER_TYPE_TOUCH) {
|
||||
if ($(e.target).closest('#menu').length == 0)
|
||||
$menu.find('li.hasSubMenu>ul.subMenu:visible').hide();
|
||||
$menu.find('li.d-sm>ul.subMenu:visible').hide();
|
||||
}
|
||||
});
|
||||
} else if (Modernizr.touch) {
|
||||
// Touch Events
|
||||
$menu
|
||||
.on('mouseover', 'li.hasSubMenu', subMenuShow)
|
||||
.on('mouseout', 'li.hasSubMenu', subMenuHide)
|
||||
.on('touchstart', 'li.hasSubMenu', function (e) {
|
||||
.on('mouseover', 'li.d-sm', subMenuShow)
|
||||
.on('mouseout', 'li.d-sm', subMenuHide)
|
||||
.on('touchstart', 'li.d-sm', function (e) {
|
||||
return subMenuTouchDown.call(this, e, false);
|
||||
});
|
||||
} else {
|
||||
// Mouse Events
|
||||
$menu
|
||||
.on('mouseover', 'li.hasSubMenu', subMenuShow)
|
||||
.on('mouseout', 'li.hasSubMenu', subMenuHide);
|
||||
.on('mouseover', 'li.d-sm', subMenuShow)
|
||||
.on('mouseout', 'li.d-sm', subMenuHide);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user