diff options
author | Bill Marquette <billm@pfsense.org> | 2007-10-19 22:00:27 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2007-10-19 22:00:27 +0000 |
commit | 4e41f518174f43b79eaaac4bbf8fee212d13a4d6 (patch) | |
tree | 1423aee4d8b105f0775009bcbf1e84ba87bf2fec /usr/local/www/dom-drag.js | |
parent | 5e6741c8d5db6c4d40a6dd4ceb667cdbdb99e29c (diff) | |
download | pfsense-4e41f518174f43b79eaaac4bbf8fee212d13a4d6.zip pfsense-4e41f518174f43b79eaaac4bbf8fee212d13a4d6.tar.gz |
lint
Diffstat (limited to 'usr/local/www/dom-drag.js')
-rwxr-xr-x | usr/local/www/dom-drag.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr/local/www/dom-drag.js b/usr/local/www/dom-drag.js index bbbf735..81273f8 100755 --- a/usr/local/www/dom-drag.js +++ b/usr/local/www/dom-drag.js @@ -10,7 +10,6 @@ * activating links when finished dragging. * mmosier@astrolabe.com **************************************************/ -<?php /* The DragList drag and drop ordered lists implementation is available under the terms of the new BSD license. @@ -48,7 +47,6 @@ OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -?> var Drag = { @@ -144,8 +142,8 @@ var Drag = { nx = x + ((ex - o.lastMouseX) * (o.hmode ? 1 : -1)); ny = y + ((ey - o.lastMouseY) * (o.vmode ? 1 : -1)); - if (o.xMapper) nx = o.xMapper(y) - else if (o.yMapper) ny = o.yMapper(x) + if (o.xMapper) nx = o.xMapper(y); + else if (o.yMapper) ny = o.yMapper(x); Drag.obj.root.style[o.hmode ? "left" : "right"] = nx + "px"; Drag.obj.root.style[o.vmode ? "top" : "bottom"] = ny + "px"; @@ -172,9 +170,10 @@ var Drag = { { document.onmousemove = null; document.onmouseup = null; - Drag.obj.root.onDragEnd( parseInt(Drag.obj.root.style[Drag.obj.hmode ? "left" : "right"]), - parseInt(Drag.obj.root.style[Drag.obj.vmode - ? "top" : "bottom"]), Drag.obj.root); + Drag.obj.root.onDragEnd( + parseInt(Drag.obj.root.style[Drag.obj.hmode ? "left" : "right"]), + parseInt(Drag.obj.root.style[Drag.obj.vmode ? "top" : "bottom"]), + Drag.obj.root); Drag.obj = null; }, |