diff options
author | Stephen Finucane <stephen@that.guru> | 2019-09-24 10:25:34 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2019-09-27 10:36:08 +0100 |
commit | 3ebfcd4c18beafa8e6086ec25b9ef9e85b7283f0 (patch) | |
tree | cc09c0dd70ccf40b7b45320eea08d6165cd54204 /lib/packages | |
parent | 5d7d5336dfeada28b036a5a3ba34d16ec8d83612 (diff) | |
download | patchwork-3ebfcd4c18beafa8e6086ec25b9ef9e85b7283f0.tar patchwork-3ebfcd4c18beafa8e6086ec25b9ef9e85b7283f0.tar.gz |
trivial: Style fixes
An assortment of fixes identified through the integration of pre-commit.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'lib/packages')
-rw-r--r-- | lib/packages/jquery/jquery.tablednd.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/packages/jquery/jquery.tablednd.js b/lib/packages/jquery/jquery.tablednd.js index 6cf3a85..f83c6d4 100644 --- a/lib/packages/jquery/jquery.tablednd.js +++ b/lib/packages/jquery/jquery.tablednd.js @@ -5,7 +5,7 @@ * Licensed like jQuery, see http://docs.jquery.com/License. * * Configuration options: - * + * * onDragStyle * This is the style that is assigned to the row during drag. There are limitations to the styles that can be * associated with a row (such as you can't assign a border—well you can, but it won't be @@ -28,14 +28,14 @@ * Pass a function that will be called when the user starts dragging. The function takes 2 parameters: the * table and the row which the user has started to drag. * onAllowDrop - * Pass a function that will be called as a row is over another row. If the function returns true, allow + * Pass a function that will be called as a row is over another row. If the function returns true, allow * dropping on that row, otherwise not. The function takes 2 parameters: the dragged row and the row under * the cursor. It returns a boolean: true allows the drop, false doesn't allow it. * scrollAmount * This is the number of pixels to scroll if the user moves the mouse cursor to the top or bottom of the * window. The page should automatically scroll up or down as appropriate (tested in IE6, IE7, Safari, FF2, * FF3 beta) - * + * * Other ways to control behaviour: * * Add class="nodrop" to any rows for which you don't want to allow dropping, and class="nodrag" to any rows @@ -47,7 +47,7 @@ * * Known problems: * - Auto-scoll has some problems with IE7 (it scrolls even when it shouldn't), work-around: set scrollAmount to 0 - * + * * Version 0.2: 2008-02-20 First public version * Version 0.3: 2008-02-07 Added onDragStart option * Made the scroll amount configurable (default is 5 as before) @@ -103,7 +103,7 @@ jQuery.tableDnD = { var rows = table.rows; //getElementsByTagName("tr") var config = table.tableDnDConfig; for (var i=0; i<rows.length; i++) { - // To make non-draggable rows, add the nodrag class (eg for Category and Header rows) + // To make non-draggable rows, add the nodrag class (eg for Category and Header rows) // inspired by John Tarr and Famic var nodrag = $(rows[i]).hasClass("nodrag"); if (! nodrag) { //There is no NoDnD attribute on rows I want to drag @@ -194,7 +194,7 @@ jQuery.tableDnD = { } } - + if (mousePos.y-yOffset < config.scrollAmount) { window.scrollBy(0, -config.scrollAmount); } else { |