[ros-diffs] [cfinck] 27592: - Check if something has changed before setting elem.value. This prevents the cursor from jumping to the last character in IE, when you press any key. - Converted the small PNG icons to GIF icons without alpha transparency. Fixes the visual appearance in IE 6 and older.

cfinck at svn.reactos.org cfinck at svn.reactos.org
Wed Jul 11 19:17:38 CEST 2007


Author: cfinck
Date: Wed Jul 11 21:17:38 2007
New Revision: 27592

URL: http://svn.reactos.org/svn/reactos?rev=27592&view=rev
Log:
- Check if something has changed before setting elem.value. This prevents the cursor from jumping to the last character in IE, when you press any key.
- Converted the small PNG icons to GIF icons without alpha transparency. Fixes the visual appearance in IE 6 and older.

Added:
    trunk/web/reactos.org/htdocs/getbuilds/images/cd.gif   (with props)
    trunk/web/reactos.org/htdocs/getbuilds/images/info.gif   (with props)
    trunk/web/reactos.org/htdocs/getbuilds/images/web.gif   (with props)
Removed:
    trunk/web/reactos.org/htdocs/getbuilds/images/cd.png
    trunk/web/reactos.org/htdocs/getbuilds/images/info.png
    trunk/web/reactos.org/htdocs/getbuilds/images/web.png
Modified:
    trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css
    trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php
    trunk/web/reactos.org/htdocs/getbuilds/index.php

Modified: trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css?rev=27592&r1=27591&r2=27592&view=diff
==============================================================================
--- trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css (original)
+++ trunk/web/reactos.org/htdocs/getbuilds/getbuilds.css Wed Jul 11 21:17:38 2007
@@ -49,7 +49,7 @@
 }
 
 ul.web {
-	list-style-image: url(images/web.png);
+	list-style-image: url(images/web.gif);
 	margin-top: 0;
 	margin-bottom: 1em;
 }

Modified: trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php?rev=27592&r1=27591&r2=27592&view=diff
==============================================================================
--- trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php (original)
+++ trunk/web/reactos.org/htdocs/getbuilds/getbuilds.js.php Wed Jul 11 21:17:38 2007
@@ -180,7 +180,7 @@
 				oddeven = !oddeven;
 				
 				html += '<tr class="' + (oddeven ? "odd" : "even") + '" onmouseover="tr_mouseover(this);" onmouseout="tr_mouseout(this);">';
-				html += '<td>' + flink + '<img src="images/cd.png" alt=""> ' + fname + '</a></td>';
+				html += '<td>' + flink + '<img src="images/cd.gif" alt=""> ' + fname + '</a></td>';
 				html += '<td>' + flink + fsize + '</a></td>';
 				html += '<td>' + flink + fdate + '</a></td>';
 				html += '</tr>';
@@ -356,7 +356,12 @@
 
 function checkRevNum(elem)
 {
-	elem.value = elem.value.replace( /[^[0-9-]/g, "");
+	var val = elem.value.replace( /[^[0-9-]/g, "");
+	
+	// First check if something was changed by the replace function.
+	// If not, don't set elem.value = val. Otherwise the cursor would always jump to the last character in IE, when you press any key.
+	if( elem.value != val )
+		elem.value = val;
 }
 
 function showLatestFiles()

Added: trunk/web/reactos.org/htdocs/getbuilds/images/cd.gif
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/images/cd.gif?rev=27592&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/web/reactos.org/htdocs/getbuilds/images/cd.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Removed: trunk/web/reactos.org/htdocs/getbuilds/images/cd.png
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/images/cd.png?rev=27591&view=auto
==============================================================================
Binary file - no diff available.

Added: trunk/web/reactos.org/htdocs/getbuilds/images/info.gif
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/images/info.gif?rev=27592&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/web/reactos.org/htdocs/getbuilds/images/info.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Removed: trunk/web/reactos.org/htdocs/getbuilds/images/info.png
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/images/info.png?rev=27591&view=auto
==============================================================================
Binary file - no diff available.

Added: trunk/web/reactos.org/htdocs/getbuilds/images/web.gif
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/images/web.gif?rev=27592&view=auto
==============================================================================
Binary file - no diff available.

Propchange: trunk/web/reactos.org/htdocs/getbuilds/images/web.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Removed: trunk/web/reactos.org/htdocs/getbuilds/images/web.png
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/images/web.png?rev=27591&view=auto
==============================================================================
Binary file - no diff available.

Modified: trunk/web/reactos.org/htdocs/getbuilds/index.php
URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/getbuilds/index.php?rev=27592&r1=27591&r2=27592&view=diff
==============================================================================
--- trunk/web/reactos.org/htdocs/getbuilds/index.php (original)
+++ trunk/web/reactos.org/htdocs/getbuilds/index.php Wed Jul 11 21:17:38 2007
@@ -1,4 +1,4 @@
-<?php
+<?php
 /*
   PROJECT:    ReactOS Website
   LICENSE:    GPL v2 or any later version
@@ -96,7 +96,7 @@
 								'<img src="images/rightarrow.gif" alt="&gt;" title="<?php echo $getbuilds_langres["nextrev"]; ?>" onclick="nextRev();"><br>' +
 							'</span>' +
 							
-							'<img src="images/info.png" alt="INFO:"> <?php echo $getbuilds_langres["rangeinfo"]; ?>' +
+							'<img src="images/info.gif" alt="INFO:"> <?php echo $getbuilds_langres["rangeinfo"]; ?>' +
 						'</td>' +
 					'</tr>' +
 					'<tr>' +




More information about the Ros-diffs mailing list