In update_swatch(), throw in some code that also converts the HEX to be all upper...
authorrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sat, 15 Jul 2006 02:26:17 +0000 (02:26 +0000)
committerrsesek <rsesek@ad1dcce9-c9fe-0310-b82b-83ea1733dbb0>
Sat, 15 Jul 2006 02:26:17 +0000 (02:26 +0000)
git-svn-id: svn://depot/macosx/RGBConverter/trunk@242 ad1dcce9-c9fe-0310-b82b-83ea1733dbb0

RGB Converter.wdgt/Widget.js

index 6a29338b5c2e99f67d4820d7f6199962c751df50..091c6c93332793ed56b704a063fc274822df34d0 100644 (file)
@@ -138,6 +138,7 @@ function update_rgb()
 // update the colour swatch
 function update_swatch()
 {
+       document.getElementById("hexinputf").value = document.getElementById("hexinputf").value.toUpperCase();
        document.getElementById("swatch").style.backgroundColor = "rgb(" + fields['red'] + ", " + fields['green'] + ", " + fields['blue'] + ")";
        document.getElementById("swatch-red").style.backgroundColor = "rgb(" + fields['red'] + ", 0, 0)";
        document.getElementById("swatch-green").style.backgroundColor = "rgb(0, " + fields['green'] + ", 0)";