summaryrefslogtreecommitdiffstats
path: root/usr/local/www/dom-drag.js
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2007-10-19 22:00:27 +0000
committerBill Marquette <billm@pfsense.org>2007-10-19 22:00:27 +0000
commit4e41f518174f43b79eaaac4bbf8fee212d13a4d6 (patch)
tree1423aee4d8b105f0775009bcbf1e84ba87bf2fec /usr/local/www/dom-drag.js
parent5e6741c8d5db6c4d40a6dd4ceb667cdbdb99e29c (diff)
downloadpfsense-4e41f518174f43b79eaaac4bbf8fee212d13a4d6.zip
pfsense-4e41f518174f43b79eaaac4bbf8fee212d13a4d6.tar.gz
lint
Diffstat (limited to 'usr/local/www/dom-drag.js')
-rwxr-xr-xusr/local/www/dom-drag.js13
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;
},
OpenPOWER on IntegriCloud