From 4e41f518174f43b79eaaac4bbf8fee212d13a4d6 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 19 Oct 2007 22:00:27 +0000 Subject: lint --- usr/local/www/auto_complete_helper.js | 6 ++-- usr/local/www/datetimepicker.js | 17 ++++++----- usr/local/www/dom-drag.js | 13 ++++----- usr/local/www/draglist.js | 18 ++++++------ usr/local/www/dtree.js | 52 ++++++++++++++------------------- usr/local/www/row_toggle.js | 5 ++-- usr/local/www/ticker.js | 54 +++++++++++++++++------------------ 7 files changed, 76 insertions(+), 89 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/auto_complete_helper.js b/usr/local/www/auto_complete_helper.js index 298bb4a..943eaea 100755 --- a/usr/local/www/auto_complete_helper.js +++ b/usr/local/www/auto_complete_helper.js @@ -45,7 +45,7 @@ function actb_parse(n){ for (i=0;i=MinHour)) { 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 **************************************************/ - 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; }, diff --git a/usr/local/www/draglist.js b/usr/local/www/draglist.js index 721e036..bb62b7a 100755 --- a/usr/local/www/draglist.js +++ b/usr/local/www/draglist.js @@ -15,7 +15,6 @@ // http://www.formvista.com/contact.html // // LICENSE: This file is governed by the new BSD license. For more information - // // REVISION HISTORY: // @@ -188,13 +186,13 @@ fv_dragList.prototype.setup = function( orientation, itemTagName ) { thisElem.style["top"] = "0px"; thisElem.style["left"] = "0px"; - } + }; } // end of for loop. this.recalcOffsets( itemTagName ); - } // end of setup. + }; // end of setup. // ---------------------------------------------- @@ -216,7 +214,7 @@ fv_dragList.prototype.do_submit = function( formName, dragListRootId ) expr = "document." + formName + ".submit()"; eval( expr ); - } + }; // ---------------------------------------------- // "Private" methods. @@ -231,7 +229,7 @@ fv_dragList.prototype.recalcOffsets = function( itemTagName ) this.offsetsX[i] = listItems[i].offsetLeft; this.offsetsY[i] = listItems[i].offsetTop; } - } + }; fv_dragList.prototype.getCurrentOffset = function(elem, itemTagName) { @@ -244,7 +242,7 @@ fv_dragList.prototype.getCurrentOffset = function(elem, itemTagName) return i; } } - } + }; fv_dragList.prototype.getDivWidth = function(elem) { @@ -259,7 +257,7 @@ fv_dragList.prototype.getDivWidth = function(elem) } return( value ); - } + }; fv_dragList.prototype.getDivHeight = function(elem) { @@ -274,7 +272,7 @@ fv_dragList.prototype.getDivHeight = function(elem) } return( value ); - } + }; /** * return list of draggable items @@ -290,7 +288,7 @@ fv_dragList.prototype.getListItems = function( itemTagName ) var listItems = this.listRoot.getElementsByTagName( itemTagName ); return( listItems ); - } + }; // end of draglist class definition. diff --git a/usr/local/www/dtree.js b/usr/local/www/dtree.js index b30dcf7..e82f0bf 100755 --- a/usr/local/www/dtree.js +++ b/usr/local/www/dtree.js @@ -6,12 +6,12 @@ function navigate(url) { function getElById(idVal) { if (document.getElementById != null) - return document.getElementById(idVal) + return document.getElementById(idVal); if (document.all != null) - return document.all[idVal] + return document.all[idVal]; - alert("Problem getting element by id") - return null + alert("Problem getting element by id"); + return null; } @@ -55,7 +55,7 @@ function Node(id, pid, name, url, title, target, icon, iconOpen, open , checkabl this._p; -}; +} // Tree object @@ -81,7 +81,7 @@ function dTree(objName) { inOrder : false - } + }; this.icon = { @@ -129,7 +129,7 @@ function dTree(objName) { this.completed = false; -}; +} @@ -486,7 +486,7 @@ dTree.prototype.generate_checkedlist = function(id) { } return retStr; -} +}; // Toggle Open or close @@ -514,7 +514,7 @@ dTree.prototype.oAll = function(status) { if (this.aNodes[n]._hc && this.aNodes[n].pid != this.root.id) { - this.nodeStatus(status, n, this.aNodes[n]._ls) + this.nodeStatus(status, n, this.aNodes[n]._ls); this.aNodes[n]._io = status; @@ -586,7 +586,7 @@ dTree.prototype.closeLevel = function(node) { } -} +}; @@ -608,7 +608,7 @@ dTree.prototype.closeAllChildren = function(node) { } -} +}; @@ -661,19 +661,12 @@ dTree.prototype.clearCookie = function() { // [Cookie] Sets value in a cookie dTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) { - document.cookie = - - escape(cookieName) + '=' + escape(cookieValue) - - + (expires ? '; expires=' + expires.toGMTString() : '') - - + (path ? '; path=' + path : '') - - + (domain ? '; domain=' + domain : '') - - + (secure ? '; secure' : ''); - + escape(cookieName) + '=' + escape(cookieValue) + + (expires ? '; expires=' + expires.toGMTString() : '') + + (path ? '; path=' + path : '') + + (domain ? '; domain=' + domain : '') + + (secure ? '; secure' : ''); }; @@ -734,12 +727,11 @@ dTree.prototype.isOpen = function(id) { var aOpen = this.getCookie('co' + this.obj).split('.'); - for (var n=0; n'+content+'') + document.write(''+content+''); -var actualwidth='' -var scroller +var actualwidth=''; +var scroller; if (window.addEventListener) - window.addEventListener("load", populatescroller, false) + window.addEventListener("load", populatescroller, false); else if (window.attachEvent) - window.attachEvent("onload", populatescroller) + window.attachEvent("onload", populatescroller); else if (document.all || document.getElementById) - window.onload=populatescroller + window.onload=populatescroller; function populatescroller(){ - scroller=document.getElementById? document.getElementById("scroller") : document.all.scroller - scroller.style.left=parseInt(width)+8+"px" - - scroller.innerHTML=content - actualwidth=document.all? document.getElementById("marquee-text").offsetWidth : document.getElementById("marquee-text").offsetWidth - lefttime=setInterval("scrollmarquee()",20) + scroller=document.getElementById? document.getElementById("scroller") : document.all.scroller; + scroller.style.left=parseInt(width)+8+"px"; + scroller.innerHTML=content; + document.getElementById("marquee-text"); + actualwidth=document.all? document.getElementById("marquee-text").offsetWidth : document.getElementById("marquee-text").offsetWidth; + lefttime=setInterval("scrollmarquee()",20); } function scrollmarquee(){ if (parseInt(scroller.style.left)>(actualwidth*(-1)+8)) - scroller.style.left=parseInt(scroller.style.left)-copyspeed+"px" + scroller.style.left=parseInt(scroller.style.left)-copyspeed+"px"; else - scroller.style.left=parseInt(width)+8+"px" + scroller.style.left=parseInt(width)+8+"px"; } if (iedom){ - with (document){ - document.write('
') - write('
') - write('
') - write('
') - document.write('
') - } + document.write('
'); + document.write('
'); + document.write('
'); + document.write('
'); + document.write('
'); } //--> \ No newline at end of file -- cgit v1.1