clarification

This commit is contained in:
Marc Delisle
2003-09-30 16:44:33 +00:00
parent 81f14fb9d9
commit a199e51025
141 changed files with 6636 additions and 2284 deletions

View File

@@ -137,7 +137,7 @@ function checkSqlQuery(theForm)
// js1.2+ -> validation with regular expressions
else {
var space_re = new RegExp('\\s+');
if (typeof(theForm.elements['sql_file']) != 'undefined' &&
if (typeof(theForm.elements['sql_file']) != 'undefined' &&
theForm.elements['sql_file'].value.replace(space_re, '') != '') {
return true;
}
@@ -398,6 +398,21 @@ function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerCol
domDetect = false;
} // end 3
// 3.3 ... Opera changes colors set via HTML to rgb(r,g,b) format so fix it
if (currentColor.indexOf("rgb") >= 0)
{
var rgbStr = currentColor.slice(currentColor.indexOf('(') + 1,
currentColor.indexOf(')'));
var rgbValues = rgbStr.split(",");
currentColor = "#";
var hexChars = "0123456789ABCDEF";
for (var i = 0; i < 3; i++)
{
var v = rgbValues[i].valueOf();
currentColor += hexChars.charAt(v/16) + hexChars.charAt(v%16);
}
}
// 4. Defines the new color
// 4.1 Current color is the default one
if (currentColor == ''