Check hound barking

This commit is contained in:
fappels 2017-11-20 14:56:12 +01:00
parent 37caa28e7e
commit 8d318337d9

View File

@ -7,6 +7,8 @@
*/ */
/*jshint -W054 */ /*jshint -W054 */
/*jshint laxbreak: true */
/*jshint expr: true */
!function ($, window, document, undefined) { !function ($, window, document, undefined) {
// Determine if this is a touch device // Determine if this is a touch device
@ -25,7 +27,7 @@ $(document).ready(function () {
return objMap; return objMap;
} }
$('table').each(function () { $('table').each(function () {
if ($(this).data('table') == 'dnd') { if ($(this).data('table') === 'dnd') {
$(this).tableDnD({ $(this).tableDnD({
onDragStyle: $(this).data('ondragstyle') && parseStyle($(this).data('ondragstyle')) || null, onDragStyle: $(this).data('ondragstyle') && parseStyle($(this).data('ondragstyle')) || null,
@ -168,7 +170,7 @@ jQuery.tableDnD = {
// Iterate through each row, the row is bound to "this" // Iterate through each row, the row is bound to "this"
if (! $(this).hasClass("nodrag")) { if (! $(this).hasClass("nodrag")) {
$(this).bind(startEvent, function(e) { $(this).bind(startEvent, function(e) {
if (e.target.tagName == "TD") { if (e.target.tagName === "TD") {
$.tableDnD.initialiseDrag(this, table, this, e, config); $.tableDnD.initialiseDrag(this, table, this, e, config);
return false; return false;
} }
@ -283,10 +285,10 @@ jQuery.tableDnD = {
// Windows version // Windows version
// yOffset=document.body.scrollTop; // yOffset=document.body.scrollTop;
if (document.all) if (document.all)
if (typeof document.compatMode != 'undefined' if (typeof document.compatMode !== 'undefined'
&& document.compatMode != 'BackCompat') && document.compatMode !== 'BackCompat')
yOffset = document.documentElement.scrollTop; yOffset = document.documentElement.scrollTop;
else if (typeof document.body != 'undefined') else if (typeof document.body !== 'undefined')
yOffset = document.body.scrollTop; yOffset = document.body.scrollTop;
mousePos.y - yOffset < config.scrollAmount mousePos.y - yOffset < config.scrollAmount