[TEP-COMMIT] [CVS admin] remove redundant javascript functions
hpdl-OfajU3CKLf1/[email protected] 28 Oct 2004 11:27:16 -0000
| Newsgroups | gmane.comp.web.oscommerce.cvs |
|---|---|
| Message-ID | <[email protected]> |
<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>admin/admin/includes</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">general.js</a></tt></td><td></td><td align="right" id="removed">-44</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/general.js?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/general.js.diff?r1=1.4&r2=1.5">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/general.js?rev=1.5&content-type=text/vnd.viewcvs-markup">1.5</a></td></tr>
</table>
<pre class="comment">
remove redundant javascript functions
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a><br /></span>
<div class="fileheader"><big><b>general.js</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/general.js?rev=1.4&content-type=text/vnd.viewcvs-markup">1.4</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/general.js.diff?r1=1.4&r2=1.5">-></a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/general.js?rev=1.5&content-type=text/vnd.viewcvs-markup">1.5</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.4 -r1.5
--- general.js 2004/07/22 23:04:22 1.4
+++ general.js 2004/10/28 11:27:11 1.5
@@ -1,24 +1,3 @@
</small></pre><pre class="diff" id="removed">-function SetFocus() {
- if (document.forms.length > 0) {
- var field = document.forms[0];
- for (i=0; i<field.length; i++) {
- if ( (field.elements[i].type != "image") &&
- (field.elements[i].type != "hidden") &&
- (field.elements[i].type != "reset") &&
- (field.elements[i].type != "submit") ) {
-
- document.forms[0].elements[i].focus();
-
- if ( (field.elements[i].type == "text") ||
- (field.elements[i].type == "password") )
- document.forms[0].elements[i].select();
-
- break;
- }
- }
- }
-}
-
</pre><pre class="diff" id="context"> function rowOverEffect(object) {
object.className = 'mouseOver';
}
</pre><pre class="diff"><small id="info">@@ -51,29 +30,6 @@
</small></pre><pre class="diff" id="context"> objForm[pdmDays].options[selectedDay-1].selected = true;
} else {
objForm[pdmDays].options[daysInMonth-1].selected = true;
</pre><pre class="diff" id="removed">- }
-}
-
-function showHide(id1, id2) {
- toggleBlock(id1);
- toggleBlock(id2);
-}
-
-function toggleBlock(id) {
- if (document.getElementById) {
- itm = document.getElementById(id);
- } else if (document.all){
- itm = document.all[id];
- } else if (document.layers){
- itm = document.layers[id];
- }
-
- if (itm) {
- if (itm.style.display == "none") {
- itm.style.display = "block";
- } else {
- itm.style.display = "none";
- }
</pre><pre class="diff" id="context"> }
}
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.9</small></center>
</body></html>
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click